Export (0) Print
Expand All

RoleEntryPoint Class

 

Updated: December 6, 2013

Provides methods to run code when a role instance is initialized, run, and stopped.

Namespace:   Microsoft.WindowsAzure.ServiceRuntime
Assembly:  Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)

System.Object
  Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint

public abstract class RoleEntryPoint

NameDescription
System_CAPS_protmethodRoleEntryPoint()

Initializes a new instance of the RoleEntryPoint class.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnStart()

Runs code that initializes a role instance.

System_CAPS_pubmethodOnStop()

Runs code when a role instance is to be stopped.

System_CAPS_pubmethodRun()

Runs code that is intended to be run for the life of the role instance.

System_CAPS_pubmethodToString()

(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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft