Commit b0d63284 authored by Ben Lambell's avatar Ben Lambell

Fix build

parent 5d64f789
...@@ -17,6 +17,6 @@ namespace Recurse.Scheduling ...@@ -17,6 +17,6 @@ namespace Recurse.Scheduling
public interface ISchedule<TTime> : ISchedule public interface ISchedule<TTime> : ISchedule
{ {
IScheduledEvent<TTime> Schedule(IEvent e, TTime time); IScheduledEvent<TTime> SetTime(IEvent e, TTime time);
} }
} }
...@@ -28,7 +28,7 @@ namespace Recurse.Scheduling.Events.Abstract ...@@ -28,7 +28,7 @@ namespace Recurse.Scheduling.Events.Abstract
public void SetTime(ISchedule<TTime> schedule, TTime time) public void SetTime(ISchedule<TTime> schedule, TTime time)
{ {
ClearTime(); ClearTime();
_scheduledEvent = schedule.Schedule(_event, time); _scheduledEvent = schedule.SetTime(_event, time);
_schedule = schedule; _schedule = schedule;
} }
......
...@@ -29,7 +29,7 @@ namespace Recurse.Scheduling.Events.Abstract ...@@ -29,7 +29,7 @@ namespace Recurse.Scheduling.Events.Abstract
_schedule.Remove(_scheduledEvent); _schedule.Remove(_scheduledEvent);
_scheduledEvent = value.HasValue ? _scheduledEvent = value.HasValue ?
_schedule.Schedule(_event, value.Value) : _schedule.SetTime(_event, value.Value) :
null; null;
} }
} }
......
...@@ -32,9 +32,9 @@ namespace Recurse.Scheduling.Schedules ...@@ -32,9 +32,9 @@ namespace Recurse.Scheduling.Schedules
return result; return result;
} }
public IScheduledEvent<TTime> Schedule(IEvent e, TTime time) public IScheduledEvent<TTime> SetTime(IEvent e, TTime time)
{ {
var result = _schedule.Schedule(e, time); var result = _schedule.SetTime(e, time);
Update(); Update();
return result; return result;
} }
...@@ -52,7 +52,7 @@ namespace Recurse.Scheduling.Schedules ...@@ -52,7 +52,7 @@ namespace Recurse.Scheduling.Schedules
if (_schedule.Next != null && _scheduledExecuteNext == null) if (_schedule.Next != null && _scheduledExecuteNext == null)
{ {
_scheduledExecuteNext = _parent.Schedule(_executeNext, _schedule.Next.Time); _scheduledExecuteNext = _parent.SetTime(_executeNext, _schedule.Next.Time);
} }
} }
......
...@@ -37,7 +37,7 @@ namespace Recurse.Scheduling.Schedules ...@@ -37,7 +37,7 @@ namespace Recurse.Scheduling.Schedules
return scheduledEvent != null && _entries.Remove(scheduledEvent); return scheduledEvent != null && _entries.Remove(scheduledEvent);
} }
public IScheduledEvent<TTime> Schedule(IEvent e, TTime time) public IScheduledEvent<TTime> SetTime(IEvent e, TTime time)
{ {
var scheduledEvent = new ScheduledEvent(e, time); var scheduledEvent = new ScheduledEvent(e, time);
_entries.Add(scheduledEvent); _entries.Add(scheduledEvent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment