1 write to _host
Microsoft.AspNetCore (1)
WebApplication.cs (1)
34
_host
= host;
9 references to _host
Microsoft.AspNetCore (9)
WebApplication.cs (9)
44
public IServiceProvider Services =>
_host
.Services;
49
public IConfiguration Configuration =>
_host
.Services.GetRequiredService<IConfiguration>();
54
public IWebHostEnvironment Environment =>
_host
.Services.GetRequiredService<IWebHostEnvironment>();
59
public IHostApplicationLifetime Lifetime =>
_host
.Services.GetRequiredService<IHostApplicationLifetime>();
77
internal IFeatureCollection ServerFeatures =>
_host
.Services.GetRequiredService<IServer>().Features;
161
_host
.StartAsync(cancellationToken);
172
_host
.StopAsync(cancellationToken);
200
void IDisposable.Dispose() =>
_host
.Dispose();
205
public ValueTask DisposeAsync() => ((IAsyncDisposable)
_host
).DisposeAsync();