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); }
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); }