コード例 #1
0
 protected abstract void _Schedule([NotNull] RecurringEvent whatAndWhen);
コード例 #2
0
 protected override void _Schedule(RecurringEvent whatAndWhen)
 {
     whatAndWhen.Cancelable = new Timer(_ => whatAndWhen.Action(), null, TimeSpan.Zero,
                                        whatAndWhen.Frequency);
 }
コード例 #3
0
 protected override void _Schedule(RecurringEvent whatAndWhen)
 {
     _triggers.Add(whatAndWhen);
     whatAndWhen.Cancelable = new StackJanitor(() => _triggers.Remove(whatAndWhen));
 }
コード例 #4
0
 public Task StartAutoplay()
 {
     _slideAdvancer = _clock.Schedule(TimeSpan.FromSeconds(_machine.SlideAdvanceSpeed), AdvanceSlide);
     return(AdvanceSlide());
 }