Edit

Share via


ServiceHealthModel Constructors

Definition

Overloads

ServiceHealthModel()

Initializes an instance of the ServiceHealthModel class.

ServiceHealthModel(ServiceHostBase)

Initializes an instance of the ServiceHealthModel class that monitors a specified service host.

ServiceHealthModel(ServiceHostBase, DateTimeOffset)

Initializes an instance of the ServiceHealthModel class that monitors a specified service host and assigns its start date and time.

ServiceHealthModel()

Initializes an instance of the ServiceHealthModel class.

public:
 ServiceHealthModel();
public ServiceHealthModel ();
Public Sub New ()

Applies to

ServiceHealthModel(ServiceHostBase)

Initializes an instance of the ServiceHealthModel class that monitors a specified service host.

public:
 ServiceHealthModel(System::ServiceModel::ServiceHostBase ^ serviceHost);
public ServiceHealthModel (System.ServiceModel.ServiceHostBase serviceHost);
new System.ServiceModel.Description.ServiceHealthModel : System.ServiceModel.ServiceHostBase -> System.ServiceModel.Description.ServiceHealthModel
Public Sub New (serviceHost As ServiceHostBase)

Parameters

serviceHost
ServiceHostBase

The service host that this health service behavior monitors.

Exceptions

serviceHost is null.

Applies to

ServiceHealthModel(ServiceHostBase, DateTimeOffset)

Initializes an instance of the ServiceHealthModel class that monitors a specified service host and assigns its start date and time.

public:
 ServiceHealthModel(System::ServiceModel::ServiceHostBase ^ serviceHost, DateTimeOffset serviceStartTime);
public ServiceHealthModel (System.ServiceModel.ServiceHostBase serviceHost, DateTimeOffset serviceStartTime);
new System.ServiceModel.Description.ServiceHealthModel : System.ServiceModel.ServiceHostBase * DateTimeOffset -> System.ServiceModel.Description.ServiceHealthModel
Public Sub New (serviceHost As ServiceHostBase, serviceStartTime As DateTimeOffset)

Parameters

serviceHost
ServiceHostBase

An instance of the service host that contains a WCF service with its ServiceHealthBehavior enabled.

serviceStartTime
DateTimeOffset

The start date and time to be assigned to the service.

Exceptions

serviceHost is null.

Applies to