1 implementation of Services
Microsoft.AspNetCore.Hosting (1)
Internal\WebHost.cs (1)
78
public IServiceProvider
Services
22 references to Services
Microsoft.AspNetCore.Hosting (4)
WebHostExtensions.cs (4)
93
var shutdownMessage = host.
Services
.GetRequiredService<WebHostOptions>().SuppressStatusMessages ? string.Empty : "Application is shutting down...";
114
var hostingEnvironment = host.
Services
.GetService<IHostEnvironment>();
115
var options = host.
Services
.GetRequiredService<WebHostOptions>();
154
var applicationLifetime = host.
Services
.GetRequiredService<IHostApplicationLifetime>();
Microsoft.Extensions.Diagnostics.Probes.Tests (18)
KubernetesProbesExtensionsTests.cs (6)
36
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(service => service.GetType().Name == "TcpEndpointProbesService");
37
var configurations = host.
Services
.GetServices<IOptionsMonitor<TcpEndpointProbesOptions>>();
80
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(service => service.GetType().Name == "TcpEndpointProbesService");
81
var configurations = host.
Services
.GetServices<IOptionsMonitor<TcpEndpointProbesOptions>>();
108
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(service => service.GetType().Name == "TcpEndpointProbesService");
109
var configurations = host.
Services
.GetServices<IOptionsMonitor<TcpEndpointProbesOptions>>();
TcpEndpointProbesExtensionsTests.cs (12)
36
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
55
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
56
var configurations = host.
Services
.GetServices<IOptions<TcpEndpointProbesOptions>>();
73
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
92
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
93
var configurations = host.
Services
.GetServices<IOptionsMonitor<TcpEndpointProbesOptions>>();
118
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
119
var configurations = host.
Services
.GetServices<IOptions<TcpEndpointProbesOptions>>();
143
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
144
var configurations = host.
Services
.GetServices<IOptionsMonitor<TcpEndpointProbesOptions>>();
164
var hostedServices = host.
Services
.GetServices<IHostedService>().Where(x => x is TcpEndpointProbesService);
165
var configurations = host.
Services
.GetServices<IOptionsMonitor<TcpEndpointProbesOptions>>();