public TasksController( IUserService userService, IScheduledTaskService scheduledTaskService, ITaskLogService taskLogService ) : base(userService) { _scheduledTaskService = scheduledTaskService; _taskLogService = taskLogService; }
public ProjectPageViewModel(NavigationService navigation) { this.navigation = navigation; columnService = new ColumnService(); taskService = new TaskService(); taskLogService = new TaskLogService(); projectService = new ProjectService(); userRoleService = new UserRoleService(); Header = new HeaderViewModel(navigation); }
public EditTaskViewModel(NavigationService navigationService) { this.navigationService = navigationService; taskService = new TaskService(); userRoleService = new UserRoleService(); columnService = new ColumnService(); taskLogService = new TaskLogService(); taskService.GetKanbanStatesOfTask(); userRoleService.LoadRoles(CurrentProject.Instance.Project.Id); Title = CurrentTask.Instance.Task.Title; ProjectTitle = CurrentProject.Instance.Project.Name; SelectedEmployee = CurrentUserRoles.Instance.Employees.FirstOrDefault(x => x.FullName.Equals(CurrentTask.Instance.Task.AssignedTo)); Deadline = CurrentTask.Instance.Task.Deadline; CurrentKanbanState = CurrentProject.Instance.KanbanStates.FirstOrDefault(x => x.Name.Equals(CurrentTask.Instance.Task.CurrentKanbanState)); Description = CurrentTask.Instance.Task.Description; if (CurrentTask.Instance.Task.Image == null) { TaskImgPath = new BitmapImage(new Uri(Path.Combine(Environment.CurrentDirectory + "\\empty_task_img.png"))); } else { TaskImgPath = ProfilePhoto.ByteArrayToImage(CurrentTask.Instance.Task.Image); } userRoleService.LoadRoles(CurrentProject.Instance.Project.Id); SelectedEmployee = CurrentUserRoles.Instance.Employees.FirstOrDefault(x => x.FullName.Equals(CurrentTask.Instance.Task.AssignedTo)); CreatedAt = "Created at: " + CurrentTask.Instance.Task.CreatedAt.Humanize(); timer = new System.Timers.Timer(1000); timer.Start(); timer.Elapsed += Timer_Elapsed; }
/// <summary> /// /// </summary> /// <param name="log"></param> public SftpFolderBackupTask(ITaskLogService log) { _log = log; }
/// <summary> /// /// </summary> /// <param name="log"></param> public SystemctlRestartTask(ITaskLogService log) : base(log) { }
public TaskBackGroundController(IQuartzService quartzCore, ITaskLogService quartzLogService) { _quartzLog = quartzLogService; _quartzService = quartzCore; }
/// <summary> /// /// </summary> /// <param name="log"></param> public SshClientTask(ITaskLogService log) { _log = log; }
/// <summary> /// /// </summary> /// <param name="log"></param> protected SystemctlBaseTask(ITaskLogService log) { _log = log; }
/// <summary> /// /// </summary> /// <param name="log"></param> public TestTask(ITaskLogService log) { _log = log; }
/// <summary> /// /// </summary> /// <param name="log"></param> public SystemctlStatusTask(ITaskLogService log) : base(log) { }
public HealthController(ITaskLogService quartzLogService) { _quartzLog = quartzLogService; }
/// <summary> /// /// </summary> /// <param name="log"></param> public UnlockServiceTask(ITaskLogService log) { _log = log; }
public HttpJob(ITaskService taskService, ITaskLogService taskLogService, IHttpClientFactory clientFactory) { _clientFactory = clientFactory; _taskLogService = taskLogService; _taskService = taskService; }
/// <summary> /// /// </summary> /// <param name="log"></param> public PublishTask(ITaskLogService log) { _log = log; }
/// <summary> /// /// </summary> /// <param name="customizedLog"></param> /// <param name="log"></param> public SftpCopyTask(ITaskCustomizedLogService customizedLog, ITaskLogService log) { _customizedLog = customizedLog; _log = log; }
/// <summary> /// /// </summary> /// <param name="customizedLog"></param> /// <param name="log"></param> public CmdTask(ITaskCustomizedLogService customizedLog, ITaskLogService log) { _customizedLog = customizedLog; _log = log; }