コード例 #1
0
 internal CalendarSchedule(Logic.DataModel.Scheduling.CalendarSchedule schedule)
     : base(schedule)
 {
     this.StartDateTime  = schedule.StartDateTime;
     this.DaysOfWeek     = schedule.DaysOfWeek;
     this.DaysOfMonth    = schedule.DaysOfMonth;
     this.DaysOfYear     = schedule.DaysOfYear;
     this.EndDateTime    = schedule.EndDateTime;
     this.StartDailyAt   = new TimeOfDay(schedule.DailyStartTime);
     this.RepeatInterval = schedule.RepeatInterval;
 }
コード例 #2
0
 internal new Logic.DataModel.Scheduling.ISchedule AsInternalSchedule()
 {
     Logic.DataModel.Scheduling.CalendarSchedule schedule = (Logic.DataModel.Scheduling.CalendarSchedule)Logic.Helpers.Utils.CreateInstanceWithRequiredInterface(this.ScheduleType, typeof(Logic.DataModel.Scheduling.ISchedule).Name);
     schedule
     .StartingAt(StartDateTime)
     .StartDailyAt(StartDailyAt.AsInternalTimeOfDay())
     .EndingAt(EndDateTime)
     .WithRepeatInterval(RepeatInterval)
     .OnDaysOfWeek(DaysOfWeek)
     .OnDaysOfMonth(DaysOfMonth)
     .OnDaysOfYear(DaysOfYear);
     return(schedule);
 }
コード例 #3
0
 internal new Logic.DataModel.Scheduling.ISchedule AsInternalSchedule()
 {
     if (string.IsNullOrEmpty(this.ScheduleType))
     {
         this.ScheduleType = typeof(BackgroundWorkerService.Logic.DataModel.Scheduling.CalendarSchedule).AssemblyQualifiedName;
     }
     Logic.DataModel.Scheduling.CalendarSchedule schedule = (Logic.DataModel.Scheduling.CalendarSchedule)Logic.Helpers.Utils.CreateInstanceWithRequiredInterface(this.ScheduleType, typeof(Logic.DataModel.Scheduling.ISchedule).Name);
     schedule
     .StartingAt(StartDateTime)
     .StartDailyAt(StartDailyAt.AsInternalTimeOfDay())
     .EndingAt(EndDateTime)
     .WithRepeatInterval(RepeatInterval)
     .OnDaysOfWeek(DaysOfWeek)
     .OnDaysOfMonth(DaysOfMonth)
     .OnDaysOfYear(DaysOfYear);
     return(schedule);
 }