/// <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;
 }
Esempio n. 2
0
 public AutomationManager(
     IAutomationRepository repo,
     IBinaryObjectManager binaryObjectManager,
     IBinaryObjectRepository binaryObjectRepository,
     IBlobStorageAdapter blobStorageAdapter,
     IAutomationVersionRepository automationVersionRepository,
     IHttpContextAccessor httpContextAccessor)
 {
     this.repo = repo;
     this.binaryObjectManager         = binaryObjectManager;
     this.binaryObjectRepository      = binaryObjectRepository;
     this.blobStorageAdapter          = blobStorageAdapter;
     this.automationVersionRepository = automationVersionRepository;
     this.httpContextAccessor         = httpContextAccessor;
 }
Esempio n. 3
0
 public AutomationManager(
     IAutomationRepository repo,
     IFileManager fileManager,
     IAutomationVersionRepository automationVersionRepository,
     IAutomationParameterRepository automationParameterRepository,
     IHttpContextAccessor httpContextAccessor
     )
 {
     _repo        = repo;
     _fileManager = fileManager;
     _automationVersionRepository   = automationVersionRepository;
     _automationParameterRepository = automationParameterRepository;
     _httpContextAccessor           = httpContextAccessor;
     _caller = ((httpContextAccessor.HttpContext != null) ? httpContextAccessor.HttpContext.User : new ClaimsPrincipal());
 }
Esempio n. 4
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;
 }
 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());
 }
Esempio n. 6
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;
 }
Esempio n. 7
0
 /// <summary>
 /// Automation Controller constructor
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="membershipManager"></param>
 /// <param name="manager"></param>
 /// <param name="userManager"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="binaryObjectManager"></param>
 /// <param name="binaryObjectRepo"></param>
 /// <param name="configuration"></param>
 /// <param name="webhookPublisher"></param>
 /// <param name="automationVersionRepo"></param>
 /// <param name="dbContext"></param>
 public AutomationsController(
     IAutomationRepository repository,
     IAutomationManager manager,
     IMembershipManager membershipManager,
     ApplicationIdentityUserManager userManager,
     IHttpContextAccessor httpContextAccessor,
     IBinaryObjectRepository binaryObjectRepo,
     IBinaryObjectManager binaryObjectManager,
     IConfiguration configuration,
     IWebhookPublisher webhookPublisher,
     IAutomationVersionRepository automationVersionRepo,
     StorageContext dbContext) : base(repository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     this.manager               = manager;
     this.binaryObjectRepo      = binaryObjectRepo;
     this.binaryObjectManager   = binaryObjectManager;
     this.webhookPublisher      = webhookPublisher;
     this.automationVersionRepo = automationVersionRepo;
     this.dbContext             = dbContext;
 }