1 write to _host
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
343
_host
= CreateHost(hostBuilder);
8 references to _host
Microsoft.AspNetCore.Mvc.Testing (8)
WebApplicationFactory.cs (8)
109
return
_host
?.Services ?? _server!.Host.Services;
116
private bool ServerStarted => _webHost != null ||
_host
!= null || _server != null;
346
TryExtractHostAddress(GetServerAddressFeature(
_host
));
350
_server = (TestServer)
_host
.Services.GetRequiredService<IServer>();
698
if (_webHost is null &&
_host
is null)
788
if (
_host
!= null)
790
await
_host
.StopAsync().ConfigureAwait(false);
791
_host
?.Dispose();