public static IHealthChecksBuilder AddDynamoDb(this IHealthChecksBuilder builder, DynamoOptions options, string name = default, HealthStatus?failureStatus = default, IEnumerable <string> tags = default, TimeSpan?timeout = default) { return(builder.Add(new HealthCheckRegistration( name ?? NAME, sp => new DynamoHealth(options), failureStatus, tags, timeout))); }
public DynamoHealth(DynamoOptions options) { _options = options ?? throw new ArgumentNullException(nameof(options)); }