hosted service
A class the host starts with the program and stops on shutdown.
An IHostedService, usually a BackgroundService, registered with AddHostedService; the host calls StartAsync at start-up and StopAsync on shutdown.
Loading interactive…
Examples
class ReminderSender : BackgroundServicewhoseExecuteAsyncloops until the app shuts down.
See also