/// <summary> /// JobsController constructor /// </summary> /// <param name="repository"></param> /// <param name="membershipManager"></param> /// <param name="userManager"></param> /// <param name="jobManager"></param> /// <param name="hub"></param> /// <param name="configuration"></param> /// <param name="httpContextAccessor"></param> /// <param name="jobCheckpointRepository"></param> /// <param name="jobParameterRepository"></param> /// <param name="automationRepository"></param> /// <param name="automationVersionRepo"></param> /// <param name="webhookPublisher"></param> public JobsController( IJobRepository repository, IAutomationRepository automationRepository, IJobParameterRepository jobParameterRepository, IJobCheckpointRepository jobCheckpointRepository, IMembershipManager membershipManager, ApplicationIdentityUserManager userManager, IJobManager jobManager, IHubContext <NotificationHub> hub, IConfiguration configuration, IHttpContextAccessor httpContextAccessor, IAutomationVersionRepository automationVersionRepo, IWebhookPublisher webhookPublisher) : base(repository, userManager, httpContextAccessor, membershipManager, configuration) { this.jobManager = jobManager; this.jobParameterRepo = jobParameterRepository; this.automationRepo = automationRepository; this.jobCheckpointRepo = jobCheckpointRepository; this.jobManager.SetContext(base.SecurityContext); this.repository = repository; _hub = hub; this.automationVersionRepo = automationVersionRepo; this.webhookPublisher = webhookPublisher; }
public JobManager(IJobRepository repo, IAgentRepository agentRepo, IAutomationRepository automationRepo, IJobParameterRepository jobParameterRepository, IJobCheckpointRepository jobCheckpointRepository) { this.repo = repo; this.agentRepo = agentRepo; this.automationRepo = automationRepo; this.jobParameterRepo = jobParameterRepository; this.jobCheckpointRepo = jobCheckpointRepository; }
public HubManager(IRecurringJobManager recurringJobManager, IJobRepository jobRepository, IHubContext <NotificationHub> hub, IAutomationVersionRepository automationVersionRepository, IWebhookPublisher webhookPublisher, IJobParameterRepository jobParameterRepository, IScheduleParameterRepository scheduleParameterRepository, IOrganizationSettingManager organizationSettingManager) { this.recurringJobManager = recurringJobManager; this.jobRepository = jobRepository; this.automationVersionRepository = automationVersionRepository; this.webhookPublisher = webhookPublisher; this.jobParameterRepository = jobParameterRepository; _hub = hub; this.scheduleParameterRepository = scheduleParameterRepository; this.organizationSettingManager = organizationSettingManager; }
public JobManager(IJobRepository jobRepository, IAgentRepository agentRepository, IAutomationRepository automationRepository, IJobParameterRepository jobParameterRepository, IJobCheckpointRepository jobCheckpointRepository, IAutomationVersionRepository automationVersionRepository, IHttpContextAccessor httpContextAccessor, IAgentGroupRepository agentGroupRepository) { _repo = jobRepository; _agentRepo = agentRepository; _automationRepo = automationRepository; _jobParameterRepo = jobParameterRepository; _jobCheckpointRepo = jobCheckpointRepository; _automationVersionRepo = automationVersionRepository; _agentGroupRepository = agentGroupRepository; httpContextAccessor = httpContextAccessor; _caller = ((httpContextAccessor.HttpContext != null) ? httpContextAccessor.HttpContext.User : new ClaimsPrincipal()); }
public HubManager(IRecurringJobManager recurringJobManager, IJobRepository jobRepository, IHubContext <NotificationHub> hub, IAutomationVersionRepository automationVersionRepository, IWebhookPublisher webhookPublisher, IJobParameterRepository jobParameterRepository, IScheduleParameterRepository scheduleParameterRepository, IOrganizationSettingManager organizationSettingManager, IAgentGroupManager agentGroupManager) { _recurringJobManager = recurringJobManager; _jobRepository = jobRepository; _automationVersionRepository = automationVersionRepository; _webhookPublisher = webhookPublisher; _jobParameterRepository = jobParameterRepository; _hub = hub; _scheduleParameterRepository = scheduleParameterRepository; _organizationSettingManager = organizationSettingManager; _agentGroupManager = agentGroupManager; }