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.

C#
public ServiceHealthModel();

Applies to

.NET Framework 4.8.1 ve .NET Framework 4.8
Ürün Sürümler
.NET Framework 4.8, 4.8.1

ServiceHealthModel(ServiceHostBase)

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

C#
public ServiceHealthModel(System.ServiceModel.ServiceHostBase serviceHost);

Parameters

serviceHost
ServiceHostBase

The service host that this health service behavior monitors.

Exceptions

serviceHost is null.

Applies to

.NET Framework 4.8.1 ve .NET Framework 4.8
Ürün Sürümler
.NET Framework 4.8, 4.8.1

ServiceHealthModel(ServiceHostBase, DateTimeOffset)

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

C#
public ServiceHealthModel(System.ServiceModel.ServiceHostBase serviceHost, DateTimeOffset serviceStartTime);

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

.NET Framework 4.8.1 ve .NET Framework 4.8
Ürün Sürümler
.NET Framework 4.8, 4.8.1