コード例 #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));
 }