1 implementation of Services
Microsoft.AspNetCore.Hosting (1)
Internal\WebHost.cs (1)
78
public IServiceProvider
Services
9 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.AspNetCore.Hosting.WindowsServices (1)
WebHostService.cs (1)
50
.
Services
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
110
return _webHost?.
Services
?? _host!.Services;
114
return _host?.Services ?? _server!.Host.
Services
;
Microsoft.AspNetCore.TestHost (2)
TestServer.cs (1)
106
Services = host.
Services
;
WebHostBuilderExtensions.cs (1)
60
return (TestServer)host.
Services
.GetRequiredService<IServer>();