コード例 #1
0
 /// <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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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());
 }
コード例 #5
0
 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;
 }