RoleEntryPoint.GetHealthStatus Method

Returns the current health status of a role.

Namespace: Microsoft.ServiceHosting.ServiceRuntime
Assembly: Microsoft.ServiceHosting.ServiceRuntime (in microsoft.servicehosting.serviceruntime.dll)

Usage

    Dim instance As RoleEntryPoint
Dim returnValue As RoleStatus

returnValue = instance.GetHealthStatus

Syntax

'Declaration
Public MustOverride Function GetHealthStatus As RoleStatus
public abstract RoleStatus GetHealthStatus ()
public:
virtual RoleStatus GetHealthStatus () abstract
public abstract RoleStatus GetHealthStatus ()
public abstract function GetHealthStatus () : RoleStatus

Return Value

RoleStatus

Remarks

This method should employ some heuristic to return the current health of a role. The health status is represented by the RoleStatus enumeration. The fabric continually polls the role to determine its status.

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