RoleEntryPoint.Stop Method
Stops the running role with an appropriate shut down sequence.
Namespace: Microsoft.ServiceHosting.ServiceRuntime
Assembly: Microsoft.ServiceHosting.ServiceRuntime (in microsoft.servicehosting.serviceruntime.dll)
Usage
Dim instance As RoleEntryPoint
instance.Stop
Syntax
'Declaration
Public Overridable Sub Stop
public virtual void Stop ()
public:
virtual void Stop ()
public void Stop ()
public function Stop ()
Remarks
The fabric calls the Stop method to shut down the role. You can use the Stop method to implement a shut down sequence to ensure that your code shuts down in the appropriate manner.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008, and Windows 2000
Target Platforms
See Also
Reference
RoleEntryPoint Class
RoleEntryPoint Members
Microsoft.ServiceHosting.ServiceRuntime Namespace