16 references to Registrations
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
335var healthCheckRegistrationKeys = options.Registrations.Select(hcr => hcr.Name).ToHashSet();
Microsoft.Extensions.Diagnostics.HealthChecks (4)
DefaultHealthCheckService.cs (2)
36ValidateRegistrations(_options.Value.Registrations); 42var registrations = _options.Value.Registrations;
DependencyInjection\HealthChecksBuilder.cs (1)
25options.Registrations.Add(registration);
HealthCheckPublisherHostedService.cs (1)
108foreach (var hc in _healthCheckServiceOptions.Value.Registrations)
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 (9)
DependencyInjection\HealthChecksBuilderTest.cs (9)
35var registration = Assert.Single(options.Registrations); 55var registration = Assert.Single(options.Registrations); 78var registration = Assert.Single(options.Registrations); 100var registration = Assert.Single(options.Registrations); 126var registration = Assert.Single(options.Registrations); 149var registration = Assert.Single(options.Registrations); 172var registration = Assert.Single(options.Registrations); 195var registration = Assert.Single(options.Registrations); 218options.Value.Registrations,