11 references to Factory
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
81
var healthCheck = registration.
Factory
(scope.ServiceProvider);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
61
Assert.True(r.
Factory
(serviceProvider) is T);
ManualHealthCheckExtensionsTests.cs (1)
56
_ = Assert.IsType<T>(r.
Factory
(serviceProvider));
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (8)
DependencyInjection\HealthChecksBuilderTest.cs (8)
39
Assert.Same(instance, registration.
Factory
(serviceProvider));
59
Assert.IsType<TestHealthCheck>(registration.
Factory
(serviceProvider));
82
Assert.Same(instance, registration.
Factory
(serviceProvider));
105
var check = Assert.IsType<TestHealthCheckWithArgs>(registration.
Factory
(serviceProvider));
130
Assert.IsType<DelegateHealthCheck>(registration.
Factory
(serviceProvider));
153
Assert.IsType<DelegateHealthCheck>(registration.
Factory
(serviceProvider));
176
Assert.IsType<DelegateHealthCheck>(registration.
Factory
(serviceProvider));
199
Assert.IsType<DelegateHealthCheck>(registration.
Factory
(serviceProvider));