9 references to TestHostedService
Microsoft.AspNetCore.Hosting.Tests (9)
WebHostTests.cs (9)
529
services.AddSingleton<IHostedService,
TestHostedService
>();
537
var
svc = (
TestHostedService
)host.Services.GetRequiredService<IHostedService>();
553
services.AddHostedService<
TestHostedService
>();
560
var
svc = (
TestHostedService
)host.Services.GetRequiredService<IHostedService>();
1072
services.AddSingleton<IHostedService,
TestHostedService
>();
1077
var
svc = (
TestHostedService
)host.Services.GetRequiredService<IHostedService>();