mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Adds the scheduler page to the web application
This commit is contained in:
1 parent
29c7d536e0
commit
f882f9192f
67 files changed
+4133
-8
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.Scheduling;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
|
||||
|
||||
/// <summary>
|
||||
/// Request for adding a scheduled job.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the scheduled job. Required.</param>
|
||||
/// <param name="TaskType">The type of the task executed by the scheduled job. Required.</param>
|
||||
/// <param name="ScheduleType">The type of the schedule of the scheduled job. Required.</param>
|
||||
/// <param name="IntervalMinutes">The interval in minutes of the schedule, when the schedule type is <see cref="ScheduleType.WithIntervalInMinutes"/>.</param>
|
||||
/// <param name="Hour">The hour of the schedule, when the schedule type is <see cref="ScheduleType.DailyAtHourAndMinute"/>.</param>
|
||||
/// <param name="Minute">The minute of the schedule, when the schedule type is <see cref="ScheduleType.DailyAtHourAndMinute"/>.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record AddScheduledJobRequest(
|
||||
string Name,
|
||||
ScheduledTaskType TaskType,
|
||||
ScheduleType ScheduleType,
|
||||
int? IntervalMinutes,
|
||||
int? Hour,
|
||||
int? Minute
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
|
||||
|
||||
/// <summary>
|
||||
/// Request for firing the task of a scheduled job once.
|
||||
/// </summary>
|
||||
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose task is fired. Required.</param>
|
||||
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
|
||||
public record FireScheduledJobRequest(
|
||||
Guid ScheduledJobId
|
||||
);
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
|
||||
|
||||
/// <summary>
|
||||
/// Request for getting the history of the executions of the tasks of scheduled jobs.
|
||||
/// </summary>
|
||||
/// <param name="From">The inclusive lower bound of the interval for which the history is requested. Optional.</param>
|
||||
/// <param name="To">The inclusive upper bound of the interval for which the history is requested. Optional.</param>
|
||||
[DebuggerDisplay("From: {From}, To: {To}")]
|
||||
public record GetScheduledJobHistoryRequest(
|
||||
DateTime? From,
|
||||
DateTime? To
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
|
||||
|
||||
/// <summary>
|
||||
/// Request for removing a scheduled job.
|
||||
/// </summary>
|
||||
/// <param name="ScheduledJobId">The unique identifier of the scheduled job to remove. Required.</param>
|
||||
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
|
||||
public record RemoveScheduledJobRequest(
|
||||
Guid ScheduledJobId
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
|
||||
|
||||
/// <summary>
|
||||
/// Request for starting the execution cycle of a scheduled job.
|
||||
/// </summary>
|
||||
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose execution cycle is started. Required.</param>
|
||||
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
|
||||
public record StartScheduledJobRequest(
|
||||
Guid ScheduledJobId
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
|
||||
|
||||
/// <summary>
|
||||
/// Request for stopping the execution cycle of a scheduled job.
|
||||
/// </summary>
|
||||
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose execution cycle is stopped. Required.</param>
|
||||
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
|
||||
public record StopScheduledJobRequest(
|
||||
Guid ScheduledJobId
|
||||
);
|
||||
Reference in new issue
Block a user