1 write to _host
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
357
_host
= CreateHost(hostBuilder);
9 references to _host
Microsoft.AspNetCore.Mvc.Testing (9)
WebApplicationFactory.cs (9)
108
return _webHost?.Services ??
_host
!.Services;
112
return
_host
?.Services ?? _server!.Host.Services;
120
private bool ServerStarted => _webHost != null ||
_host
!= null || _server != null;
360
TryExtractHostAddress(GetServerAddressFeature(
_host
));
364
_server = (TestServer)
_host
.Services.GetRequiredService<IServer>();
724
if (_webHost is null &&
_host
is null)
814
if (
_host
!= null)
816
await
_host
.StopAsync().ConfigureAwait(false);
817
_host
?.Dispose();