7 references to AddHostedService
aspire (1)
Program.cs (1)
126builder.Services.AddHostedService(sp => sp.GetRequiredService<NuGetPackagePrefetcher>());
Aspire.Hosting (3)
DistributedApplicationBuilder.cs (3)
282_innerBuilder.Services.AddHostedService<BackchannelService>(sp => sp.GetRequiredService<BackchannelService>()); 345_innerBuilder.Services.AddHostedService(sp => sp.GetRequiredService<DashboardServiceHost>()); 457_innerBuilder.Services.AddHostedService<ResourceHealthCheckService>(sp => sp.GetRequiredService<ResourceHealthCheckService>());
Aspire.Hosting.Tests (1)
AppHostSmokeTests.cs (1)
53builder.Services.AddHostedService(sp => testService);
CatalogDb (1)
Program.cs (1)
13builder.Services.AddHostedService(sp => sp.GetRequiredService<CatalogDbInitializer>());
SignalRServerlessWeb (1)
Program.cs (1)
18builder.Services.AddHostedService(sp => new PeriodicBroadcaster(hubContext));