Var denne siden nyttig?
Din tilbakemelding på dette innholdet er viktig. Fortell oss hva du synes.
Mer tilbakemelding?
1500 tegn igjen
RequestRecycle Method
Collapse the table of content
Expand the table of content
EN
Dette innholdet er ikke tilgjengelig på ditt språk, men her er den engelske versjonen.

RoleEnvironment::RequestRecycle Method ()

 

Requests that the current role instance be stopped and restarted.

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

public:
static void RequestRecycle()

Exception Condition
RoleEnvironmentException

The role instance could not be stopped and restarted.

When the RequestRecycle method is called, the load balancer takes the role instance out of the rotation and the normal shutdown cycle is initiated. New requests are not routed to the role instance while it is restarting.

Windows Azure raises the Stopping event and calls the OnStop method where you can run the necessary code to prepare the role instance to be recycled.

Return to top
Vis:
© 2015 Microsoft