Skip to content

Commit 4072e04

Browse files
Copilotjamesmh
andauthored
Rename IGetAllScheduleInfo to IGetScheduleInfo (#445)
* Initial plan * Rename IGetAllScheduleInfo to IGetScheduleInfo interface and update all references Co-authored-by: jamesmh <7213174+jamesmh@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jamesmh <7213174+jamesmh@users.noreply.github.com>
1 parent 78560d2 commit 4072e04

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Src/Coravel/Scheduling/Schedule/Event/ScheduledEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Coravel.Scheduling.Schedule.Event
1212
{
13-
public class ScheduledEvent : IScheduleInterval, IScheduledEventConfiguration, IGetAllScheduleInfo
13+
public class ScheduledEvent : IScheduleInterval, IScheduledEventConfiguration, IGetScheduleInfo
1414
{
1515
private CronExpression _expression;
1616
private ActionOrAsyncFunc _scheduledAction;

Src/Coravel/Scheduling/Schedule/Interfaces/IGetAllScheduleInfo.cs renamed to Src/Coravel/Scheduling/Schedule/Interfaces/IGetScheduleInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Coravel.Scheduling.Schedule.Interfaces
33
/// <summary>
44
/// Provides methods to get information about active schedules.
55
/// </summary>
6-
public interface IGetAllScheduleInfo
6+
public interface IGetScheduleInfo
77
{
88
/// <summary>
99
/// Gets a data representation of the scheduled event.

Src/Coravel/Scheduling/Schedule/Scheduler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public IReadOnlyList<ScheduleInfo> GetSchedules()
153153
{
154154
return this._tasks.Values
155155
.Select(task => task.ScheduledEvent)
156-
.OfType<IGetAllScheduleInfo>()
156+
.OfType<IGetScheduleInfo>()
157157
.Select(dataProvider => dataProvider.GetScheduleInfo())
158158
.ToList();
159159
}

0 commit comments

Comments
 (0)