4 references to DelegateHostedService
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostTests.cs (4)
506
services.AddSingleton<IHostedService>(_ => new
DelegateHostedService
(started, stopping, disposing));
596
services.AddSingleton<IHostedService>(_ => new
DelegateHostedService
(started, stopping, disposing));
649
services.AddSingleton<IHostedService>(_ => new
DelegateHostedService
(started, stopping, disposing));
1129
services.AddSingleton<IHostedService>(new
DelegateHostedService
(started, stopping, () => { }));