Exemplo n.º 1
0
 /// <summary>
 /// Ctor for Task
 /// </summary>
 /// <param name="task">Task </param>
 public Task(ScheduleTask task)
 {
     this.Type = task.Type;
     this.Enabled = task.Enabled;
     this.StopOnError = task.StopOnError;
     this.Name = task.Name;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Deletes a task
        /// </summary>
        /// <param name="task">Task</param>
        public virtual void DeleteTask(ScheduleTask task)
        {
            if (task == null)
                throw new ArgumentNullException("task");

            _taskRepository.Delete(task);
        }