1 interface inheriting from IHostedService
Microsoft.Extensions.Hosting.Abstractions (1)
20 implementations of IHostedService
Aspire.Hosting (1)
http2cat (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Hosting.Tests (5)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Tests (1)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
Microsoft.Extensions.Hosting.Abstractions (1)
81 references to IHostedService
Aspire.Hosting (6)
Aspire.Hosting.Testing.Tests (1)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Hosting.Tests (10)
WebHostTests.cs (9)
504services.AddSingleton<IHostedService>(_ => new DelegateHostedService(started, stopping, disposing));
527services.AddSingleton<IHostedService, TestHostedService>();
535var svc = (TestHostedService)host.Services.GetRequiredService<IHostedService>();
558var svc = (TestHostedService)host.Services.GetRequiredService<IHostedService>();
594services.AddSingleton<IHostedService>(_ => new DelegateHostedService(started, stopping, disposing));
647services.AddSingleton<IHostedService>(_ => new DelegateHostedService(started, stopping, disposing));
1070services.AddSingleton<IHostedService, TestHostedService>();
1075var svc = (TestHostedService)host.Services.GetRequiredService<IHostedService>();
1125services.AddSingleton<IHostedService>(new DelegateHostedService(started, stopping, () => { }));
Microsoft.AspNetCore.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (10)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.Hosting (12)
Microsoft.Extensions.Hosting.Abstractions (18)
Microsoft.Extensions.Hosting.Testing (2)
Microsoft.Extensions.Hosting.Testing.Tests (3)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Nats.Backend (1)