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