[CHANGE] Reworked ExtendedBackgroundService.cs with State logic and actions
This commit is contained in:
16
Manager.App/Services/System/SettingsService.cs
Normal file
16
Manager.App/Services/System/SettingsService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Manager.App.Services.System;
|
||||
|
||||
public class SettingsService(ILogger<SettingsService> logger) : ExtendedBackgroundService(nameof(SettingsService), "Service for handling application settings.", logger, TimeSpan.FromMinutes(10))
|
||||
{
|
||||
protected override async Task InitializeAsync(CancellationToken stoppingToken)
|
||||
{
|
||||
AddActions([
|
||||
new ServiceAction("Save settings", "Save the application settings to the database", () => { }, () => true)
|
||||
]);
|
||||
}
|
||||
|
||||
protected override async Task ExecuteServiceAsync(CancellationToken stoppingToken)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user