7 references to AddHostedService
aspire (1)
Program.cs (1)
126
builder.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)
53
builder.Services.
AddHostedService
(sp => testService);
CatalogDb (1)
Program.cs (1)
13
builder.Services.
AddHostedService
(sp => sp.GetRequiredService<CatalogDbInitializer>());
SignalRServerlessWeb (1)
Program.cs (1)
18
builder.Services.
AddHostedService
(sp => new PeriodicBroadcaster(hubContext));