Example #1
0
 public ScheduledTaskDto(ScheduledTaskModel model)
 {
     UpdateScheduledTaskFromModel(model);
     TaskId = Guid.NewGuid();
 }
Example #2
0
 public static ScheduledTaskDto GetScheduledTask(ScheduledTaskModel scheduledTaskModel)
     => GetScheduledTask(scheduledTaskModel.TaskId);
Example #3
0
        public ScheduledTaskDto UpdateScheduledTaskFromModel(ScheduledTaskModel model)
        {
            SyncOperation = model.SyncOperation;
            PartialSync = !model.SyncOperation.Equals(SyncOperation.All) && model.PartialSync;
            IsActive = model.IsActive;
            TimeScheduler = model.TimeScheduler;
            ManualTrigger = model.ManualTrigger;

            return this;
        }