Occurs at a regular interval to indicate the status of a role instance.
Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
Public Shared Event StatusCheck As EventHandler(Of RoleInstanceStatusCheckEventArgs)
Return to top
You can use the StatusCheck event to change the status of the role instance. A role instance may indicate that it is in one of two states: Ready or Busy. If the state of a role instance is Ready, it is prepared to receive requests from the load balancer. If the state of the instance is Busy, it will not receive requests from the load balancer. By calling the SetBusy method of RoleInstanceStatusCheckEventArgs, you can temporarily set the status of the role instance to Busy, which removes the role instance from the load balancer.
The following code example shows how to set the status of the role instance to Busy:
No code example is currently available or this language may not be supported.