RoleEntryPoint Class
Updated: December 6, 2013
Provides methods to run code when a role instance is initialized, run, and stopped.
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
| Name | Description | |
|---|---|---|
![]() | RoleEntryPoint() | Initializes a new instance of the RoleEntryPoint class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnStart() | Runs code that initializes a role instance. |
![]() | OnStop() | Runs code when a role instance is to be stopped. |
![]() | Run() | Runs code that is intended to be run for the life of the role instance. |
![]() | ToString() | (Inherited from Object.) |
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)