コード例 #1
0
 public TasksController(
     IUserService userService,
     IScheduledTaskService scheduledTaskService,
     ITaskLogService taskLogService
     ) : base(userService)
 {
     _scheduledTaskService = scheduledTaskService;
     _taskLogService       = taskLogService;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public SftpFolderBackupTask(ITaskLogService log)
 {
     _log = log;
 }
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public SystemctlRestartTask(ITaskLogService log) : base(log)
 {
 }
コード例 #6
0
 public TaskBackGroundController(IQuartzService quartzCore, ITaskLogService quartzLogService)
 {
     _quartzLog     = quartzLogService;
     _quartzService = quartzCore;
 }
コード例 #7
0
ファイル: SshClientTask.cs プロジェクト: Bunyod545/Jobs
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public SshClientTask(ITaskLogService log)
 {
     _log = log;
 }
コード例 #8
0
ファイル: SystemctlBaseTask.cs プロジェクト: Bunyod545/Jobs
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 protected SystemctlBaseTask(ITaskLogService log)
 {
     _log = log;
 }
コード例 #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public TestTask(ITaskLogService log)
 {
     _log = log;
 }
コード例 #10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public SystemctlStatusTask(ITaskLogService log) : base(log)
 {
 }
コード例 #11
0
 public HealthController(ITaskLogService quartzLogService)
 {
     _quartzLog = quartzLogService;
 }
コード例 #12
0
ファイル: UnlockServiceTask.cs プロジェクト: Bunyod545/Jobs
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public UnlockServiceTask(ITaskLogService log)
 {
     _log = log;
 }
コード例 #13
0
ファイル: HttpJob.cs プロジェクト: NameIsBad/Zoey.Quartz
 public HttpJob(ITaskService taskService, ITaskLogService taskLogService, IHttpClientFactory clientFactory)
 {
     _clientFactory  = clientFactory;
     _taskLogService = taskLogService;
     _taskService    = taskService;
 }
コード例 #14
0
ファイル: PublishTask.cs プロジェクト: Bunyod545/Jobs
 /// <summary>
 ///
 /// </summary>
 /// <param name="log"></param>
 public PublishTask(ITaskLogService log)
 {
     _log = log;
 }
コード例 #15
0
ファイル: SftpCopyTask.cs プロジェクト: Bunyod545/Jobs
 /// <summary>
 ///
 /// </summary>
 /// <param name="customizedLog"></param>
 /// <param name="log"></param>
 public SftpCopyTask(ITaskCustomizedLogService customizedLog, ITaskLogService log)
 {
     _customizedLog = customizedLog;
     _log           = log;
 }
コード例 #16
0
ファイル: CmdTask.cs プロジェクト: Bunyod545/Jobs
 /// <summary>
 ///
 /// </summary>
 /// <param name="customizedLog"></param>
 /// <param name="log"></param>
 public CmdTask(ITaskCustomizedLogService customizedLog, ITaskLogService log)
 {
     _customizedLog = customizedLog;
     _log           = log;
 }