Show / Hide Table of Contents

Interface IApplicationStatusProvider

Represents probes for the application running inside of Kubernetes.

Namespace: DotNext.Diagnostics
Assembly: DotNext.MaintenanceServices.dll
Syntax
public interface IApplicationStatusProvider

Methods

View Source

LivenessProbeAsync(CancellationToken)

Implements Liveness probe.

Declaration
Task<bool> LivenessProbeAsync(CancellationToken token)
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task<bool>

true if probe is successful; otherwise, false.

View Source

ReadinessProbeAsync(CancellationToken)

Implements Readiness probe.

Declaration
Task<bool> ReadinessProbeAsync(CancellationToken token)
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task<bool>

true if probe is successful; otherwise, false.

View Source

StartupProbeAsync(CancellationToken)

Implements Startup probe.

Declaration
Task<bool> StartupProbeAsync(CancellationToken token)
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task<bool>

true if probe is successful; otherwise, false.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)

See Also

Kubernetes Probes
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾