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