1 write to _hostStartedTcs
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
126
_hostStartedTcs
= hostStartedTcs;
3 references to _hostStartedTcs
Microsoft.AspNetCore.Mvc.Testing (3)
DeferredHostBuilder.cs (3)
148
using var reg = cancellationToken.UnsafeRegister(_ =>
_hostStartedTcs
.TrySetCanceled(), null);
152
using var reg2 = _host.Services.GetRequiredService<IHostApplicationLifetime>().ApplicationStarted.UnsafeRegister(_ =>
_hostStartedTcs
.TrySetResult(), null);
154
await
_hostStartedTcs
.Task.ConfigureAwait(false);