Hosted Service
Background code that starts and stops with the app.
What is Hosted Service?
A hosted service (IHostedService) is background code that starts and stops with the app, such as a queue listener or a scheduled cleanup.
builder.Services.AddHostedService<NightlyCleanup>();
Level: Freelancer · More ASP.NET Core terms at this level
Updated