Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HealthCheckPublisherOptions Class

Definition

Namespace:
Microsoft.Extensions.Diagnostics.HealthChecks
Assembly:
Microsoft.Extensions.Diagnostics.HealthChecks.dll
Package:
Microsoft.Extensions.Diagnostics.HealthChecks v11.0.0-preview.5.26302.115
Source:
HealthCheckPublisherOptions.cs
Source:
HealthCheckPublisherOptions.cs
Source:
HealthCheckPublisherOptions.cs
Source:
HealthCheckPublisherOptions.cs
Source:
HealthCheckPublisherOptions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Options for the default service that executes IHealthCheckPublisher instances.

public ref class HealthCheckPublisherOptions sealed
public sealed class HealthCheckPublisherOptions
type HealthCheckPublisherOptions = class
Public NotInheritable Class HealthCheckPublisherOptions
Inheritance
HealthCheckPublisherOptions

Constructors

Name Description
HealthCheckPublisherOptions()

Creates a new instance of HealthCheckPublisherOptions.

Properties

Name Description
Delay

Gets or sets the initial delay applied after the application starts before executing IHealthCheckPublisher instances. The delay is applied once at startup, and does not apply to subsequent iterations. The default value is 5 seconds.

Period

Gets or sets the period of IHealthCheckPublisher execution. The default value is 30 seconds.

Predicate

Gets or sets a predicate that is used to filter the set of health checks executed.

Timeout

Gets or sets the timeout for executing the health checks an all IHealthCheckPublisher instances. Use InfiniteTimeSpan to execute with no timeout. The default value is 30 seconds.

Applies to


Feedback

Was this page helpful?