Пример #1
0
 public void Reset()
 {
     _fileBasedSchedule = new Lazy <IEnumerable <TalkScheduleItem> >(() => TalkScheduleFileBased.Read(_optionsService.Options.AutoBell));
     _autoSchedule      = new Lazy <IEnumerable <TalkScheduleItem> >(() => TalkScheduleAuto.Read(_optionsService, _dateTimeService, _isJanuary2020OrLater));
     _manualSchedule    = new Lazy <IEnumerable <TalkScheduleItem> >(() => TalkScheduleManual.Read(_optionsService));
 }
Пример #2
0
 public void Reset()
 {
     _fileBasedSchedule = new Lazy <IEnumerable <TalkScheduleItem> >(TalkScheduleFileBased.Read);
     _autoSchedule      = new Lazy <IEnumerable <TalkScheduleItem> >(() => TalkScheduleAuto.Read(_optionsService));
     _manualSchedule    = new Lazy <IEnumerable <TalkScheduleItem> >(() => TalkScheduleManual.Read(_optionsService));
 }