Ejemplo n.º 1
0
 public RefreshHoursTask(
     TimeTrackerOptions timeTrackerOptions,
     GraphAppUserService graphUserService,
     GraphAppSharePointService graphSharePointService,
     Microsoft.Azure.WebJobs.ExecutionContext context)
 {
     _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
     _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
     _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
        public AutoSubmitWorkHoursTask(
            TimeTrackerOptions timeTrackerOptions,
            GraphAppUserService graphUserService,
            GraphAppSharePointService graphSharePointService)
        {
            _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
            _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
            _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));

            _schedule = _timeTrackerOptions.CutoffDayEmployee;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public WorkHoursWorkflowService(
     TimeTrackerOptions timeTrackerOptions,
     GraphAppUserService graphUserService,
     GraphAppSharePointService graphSharePointService,
     WorkflowServiceHelper workflowServiceHelper,
     string objectIdentifier)
 {
     _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
     _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
     _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
     _workflowServiceHelper  = workflowServiceHelper ?? throw new ArgumentNullException(nameof(workflowServiceHelper));
     _objectIdentifier       = objectIdentifier;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public TeamHoursWorkflowService(
            TimeTrackerOptions timeTrackerOptions,
            GraphAppUserService graphUserService,
            GraphAppSharePointService graphSharePointService,
            WorkflowServiceHelper workflowServiceHelper,
            UserProfileRepository userProfileRepository)
        {
            _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
            _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
            _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
            _workflowServiceHelper  = workflowServiceHelper ?? throw new ArgumentNullException(nameof(workflowServiceHelper));

            _userProfileRepository = userProfileRepository ?? throw new ArgumentNullException(nameof(userProfileRepository));
        }