Skip to content
DocsTry Aspire
DocsTry

KurrentDBHealthCheck Methods

ClassMethods2 members
Checks whether a connection can be made to KurrentDB services using the supplied connection string.
CheckHealthAsync(HealthCheckContext, CancellationToken)Section titled CheckHealthAsync(HealthCheckContext, CancellationToken)Task<HealthCheckResult>
Runs the health check, returning the status of the component being checked.
public class KurrentDBHealthCheck
{
public Task<HealthCheckResult> CheckHealthAsync(
HealthCheckContext context,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
contextHealthCheckContextA context object associated with the current execution.
cancellationTokenCancellationTokenoptionalA Threading.CancellationToken that can be used to cancel the health check.
Task<HealthCheckResult>A Tasks.Task`1 that completes when the health check has finished, yielding the status of the component being checked.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public class KurrentDBHealthCheck
{
public virtual void Dispose()
{
// ...
}
}