Class Component
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
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
Name
Name of the component. This name needs to be unique.
public required string Name { get; init; }