1 write to _host
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
404
_host
= CreateHost(hostBuilder);
9 references to _host
Microsoft.AspNetCore.Mvc.Testing (9)
WebApplicationFactory.cs (9)
110
return _webHost?.Services ??
_host
!.Services;
114
return
_host
?.Services ?? _server!.Host.Services;
122
private bool ServerStarted => _webHost != null ||
_host
!= null || _server != null;
407
TryExtractHostAddress(GetServerAddressFeature(
_host
));
411
_server = (TestServer)
_host
.Services.GetRequiredService<IServer>();
789
if (_webHost is null &&
_host
is null)
879
if (
_host
!= null)
881
await
_host
.StopAsync().ConfigureAwait(false);
882
_host
?.Dispose();