Commit b0d63284 authored by Ben Lambell's avatar Ben Lambell

Fix build

parent 5d64f789
......@@ -17,6 +17,6 @@ namespace Recurse.Scheduling
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
public void SetTime(ISchedule<TTime> schedule, TTime time)
{
ClearTime();
_scheduledEvent = schedule.Schedule(_event, time);
_scheduledEvent = schedule.SetTime(_event, time);
_schedule = schedule;
}
......
......@@ -29,7 +29,7 @@ namespace Recurse.Scheduling.Events.Abstract
_schedule.Remove(_scheduledEvent);
_scheduledEvent = value.HasValue ?
_schedule.Schedule(_event, value.Value) :
_schedule.SetTime(_event, value.Value) :
null;
}
}
......
......@@ -32,9 +32,9 @@ namespace Recurse.Scheduling.Schedules
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();
return result;
}
......@@ -52,7 +52,7 @@ namespace Recurse.Scheduling.Schedules
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
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);
_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