Table of Contents

Class Component

Namespace
Quilt4Net.Toolkit.Features.Health
Assembly
Quilt4Net.Toolkit.dll

Component for availability checking.

public record Component : IEquatable<Component>
Inheritance
Component
Implements
Inherited Members

Properties

CheckAsync

Method that performs the check for the component.

public required Func<IServiceProvider, Task<CheckResult>> CheckAsync { get; init; }

Property Value

Func<IServiceProvider, Task<CheckResult>>

Essential

Non-essential component will be considered Degraded if they fail. Essential components will be considered to Unhealthy/Unready that will result in 503 response. Default is true.

public bool Essential { get; init; }

Property Value

bool

Name

Name of the component. This name needs to be unique.

public required string Name { get; init; }

Property Value

string