Class AppConfigAgentReloadService
- Namespace
- SEBT.Portal.Infrastructure.Configuration
- Assembly
- SEBT.Portal.Infrastructure.dll
public sealed class AppConfigAgentReloadService : BackgroundService
- Inheritance
-
objectBackgroundServiceAppConfigAgentReloadService
Constructors
AppConfigAgentReloadService(IConfiguration, TimeProvider, ILogger<AppConfigAgentReloadService>)
public AppConfigAgentReloadService(IConfiguration configuration, TimeProvider timeProvider, ILogger<AppConfigAgentReloadService> logger)
Parameters
configurationIConfigurationtimeProviderTimeProviderloggerILogger<AppConfigAgentReloadService>
Methods
ExecuteAsync(CancellationToken)
This method is called when the Microsoft.Extensions.Hosting.IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
stoppingTokenCancellationTokenTriggered when Microsoft.Extensions.Hosting.IHostedService.StopAsync(System.Threading.CancellationToken) is called.
Returns
- Task
A System.Threading.Tasks.Task that represents the long running operations.
Remarks
See Worker Services in .NET for implementation guidelines.