1 write to _host
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
125
_host
= host;
5 references to _host
Microsoft.AspNetCore.Mvc.Testing (5)
DeferredHostBuilder.cs (5)
129
public IServiceProvider Services =>
_host
.Services;
131
public void Dispose() =>
_host
.Dispose();
135
if (
_host
is IAsyncDisposable disposable)
152
using var reg2 =
_host
.Services.GetRequiredService<IHostApplicationLifetime>().ApplicationStarted.UnsafeRegister(_ => _hostStartedTcs.TrySetResult(), null);
157
public Task StopAsync(CancellationToken cancellationToken = default) =>
_host
.StopAsync(cancellationToken);