1 write to _host
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
358_host = CreateHost(hostBuilder);
9 references to _host
Microsoft.AspNetCore.Mvc.Testing (9)
WebApplicationFactory.cs (9)
109return _webHost?.Services ?? _host!.Services; 113return _host?.Services ?? _server!.Host.Services; 121private bool ServerStarted => _webHost != null || _host != null || _server != null; 361TryExtractHostAddress(GetServerAddressFeature(_host)); 365_server = (TestServer)_host.Services.GetRequiredService<IServer>(); 725if (_webHost is null && _host is null) 815if (_host != null) 817await _host.StopAsync().ConfigureAwait(false); 818_host?.Dispose();