refactor!: Use Func<Task> for scheduled tasks

This commit is contained in:
Mira 2023-08-06 19:13:35 +02:00
parent 647d7c4a1c
commit bc8eb1ac0d
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36
5 changed files with 98 additions and 66 deletions

View file

@ -0,0 +1,22 @@
using Xorog.UniversalExtensions.Entities;
namespace Xorog.UniversalExtensions.EventArgs;
public class ScheduledTaskStartedEventArgs : System.EventArgs
{
internal ScheduledTaskStartedEventArgs(ScheduledTask details, Task task)
{
this.Details = details;
this.Task = task;
}
/// <summary>
/// The details of this scheduled task.
/// </summary>
public ScheduledTask Details { get; internal set; }
/// <summary>
/// The task that was executed.
/// </summary>
public Task Task { get; internal set; }
}