Updated: December 6, 2013
Provides methods to run code when a role instance is initialized, run, and stopped.
Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
Public MustInherit Class RoleEntryPoint
Initializes a new instance of the RoleEntryPoint class.
Worker roles must extend the RoleEntryPoint class to add functionality to the role instances. Web roles can optionally extend the RoleEntryPoint class, or can use the ASP.NET lifecycle management methods to handle the start and stop sequences.
Return to top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.