예제 #1
0
        public ITickerManagerEntry Execute(ITickerBehavior behavior, DateTime date)
        {
            var entry = new TickerManagerEntry(behavior)
            {
                NextTick = date
            };

            _entries.Add(entry);
            return(entry);
        }
예제 #2
0
        public ITickerManagerEntry Schedule(ITickerBehavior behavior, TimeSpan frequency, TimeSpan delay)
        {
            var entry = new TickerManagerEntry(behavior, frequency)
            {
                NextTick = DateTime.UtcNow + delay
            };

            _entries.Add(entry);
            return(entry);
        }