27 references to HealthCheckServiceOptions
Aspire.Hosting (2)
DistributedApplicationBuilder.cs (2)
321
_innerBuilder.Services.AddSingleton<IValidateOptions<
HealthCheckServiceOptions
>>(sp =>
329
return new ValidateOptions<
HealthCheckServiceOptions
>(null, (options) =>
Microsoft.Extensions.Diagnostics.HealthChecks (5)
DefaultHealthCheckService.cs (2)
21
private readonly IOptions<
HealthCheckServiceOptions
> _options;
26
IOptions<
HealthCheckServiceOptions
> options,
DependencyInjection\HealthChecksBuilder.cs (1)
23
Services.Configure<
HealthCheckServiceOptions
>(options =>
HealthCheckPublisherHostedService.cs (2)
22
private readonly IOptions<
HealthCheckServiceOptions
> _healthCheckServiceOptions;
33
IOptions<
HealthCheckServiceOptions
> healthCheckServiceOptions,
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
56
var registrations = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value.Registrations;
ManualHealthCheckExtensionsTests.cs (1)
51
var registrations = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value.Registrations;
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (18)
DefaultHealthCheckServiceTest.cs (1)
43
var options = services.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>();
DependencyInjection\HealthChecksBuilderTest.cs (17)
32
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
52
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
75
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
97
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
123
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
146
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
169
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
192
var
options = serviceProvider.GetRequiredService<IOptions<
HealthCheckServiceOptions
>>().Value;
214
var options = services.BuildServiceProvider().GetRequiredService<IOptions<
HealthCheckServiceOptions
>>();