In addition to what DarwkwingDuck said, I just mentioned that RoleEntryPoint Provides methods to run the code when the role instance is initialized, started and stopped.
If we continue to read the RoleEntryPoint class document on MSDN , we will also see the following:
Worker roles must extend the RoleEntryPoint class to add functionality to role instances. Web roles can optionally extend the RoleEntryPoint Class or can use ASP.NET lifecycle management methods to process start and end sequences. For the Windows virtual machine role, Services is used instead of the RoleEntryPoint class.
So Web Roles can further extend the RoleEntryPoint class .
astaykov
source share