This commit is contained in:
2026-05-13 09:38:52 +03:00
parent 24962fba03
commit d4805b06e6
15 changed files with 514 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
using Microsoft.Extensions.Configuration;
namespace JobScheduler.Tasks;
/// <summary>
/// A named unit of work invoked by <see cref="JobScheduler.Scheduling.JobSchedulerHostedService"/>.
/// </summary>
public interface IJobTask
{
/// <summary>Matches <c>Jobs:Tasks:*:TaskType</c> in configuration.</summary>
string TaskType { get; }
Task ExecuteAsync(IConfiguration parametersSection, CancellationToken cancellationToken);
}