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