public ITickerManagerEntry Execute(ITickerBehavior behavior, DateTime date) { var entry = new TickerManagerEntry(behavior) { NextTick = date }; _entries.Add(entry); return(entry); }
public ITickerManagerEntry Schedule(ITickerBehavior behavior, TimeSpan frequency, TimeSpan delay) { var entry = new TickerManagerEntry(behavior, frequency) { NextTick = DateTime.UtcNow + delay }; _entries.Add(entry); return(entry); }