/// <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;
 }
Exemple #2
0
 public ScheduleManager(IScheduleRepository repo, IJobRepository jobRepository, IScheduleParameterRepository scheduleParameterRepository, IAgentRepository agentRepository,
                        IAutomationRepository automationRepository)
 {
     this.repo          = repo;
     this.jobRepository = jobRepository;
     this.scheduleParameterRepository = scheduleParameterRepository;
     this.agentRepository             = agentRepository;
     this.automationRepository        = automationRepository;
 }
 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;
 }
Exemple #4
0
 public ScheduleManager(IScheduleRepository repo, IScheduleParameterRepository scheduleParameterRepository,
                        IAgentRepository agentRepository,
                        IAutomationRepository automationRepository,
                        IAgentGroupRepository agentGroupRepository)
 {
     _repo = repo;
     _scheduleParameterRepository = scheduleParameterRepository;
     _agentRepository             = agentRepository;
     _automationRepository        = automationRepository;
     _agentGroupRepository        = agentGroupRepository;
 }
Exemple #5
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="configuration"></param>
 /// <param name="webhookPublisher"></param>
 /// <param name="dbContext"></param>
 public AutomationsController(
     IAutomationRepository repository,
     IAutomationManager manager,
     IMembershipManager membershipManager,
     ApplicationIdentityUserManager userManager,
     IHttpContextAccessor httpContextAccessor,
     IConfiguration configuration,
     IWebhookPublisher webhookPublisher,
     StorageContext dbContext) : base(repository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     _manager          = manager;
     _webhookPublisher = webhookPublisher;
     _dbContext        = dbContext;
 }
Exemple #6
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;
 }
Exemple #7
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());
 }
 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());
 }
Exemple #9
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;
 }
Exemple #10
0
 public AutomationExecutionLogManager(IAutomationExecutionLogRepository automationExecutionLogRepo, IAgentRepository agentRepo, IAutomationRepository automationRepo)
 {
     this.repo           = automationExecutionLogRepo;
     this.agentRepo      = agentRepo;
     this.automationRepo = automationRepo;
 }
Exemple #11
0
 public AutomationExecutionLogManager(IAutomationExecutionLogRepository automationExecutionLogRepo, IAgentRepository agentRepo, IAutomationRepository automationRepo)
 {
     _repo           = automationExecutionLogRepo;
     _agentRepo      = agentRepo;
     _automationRepo = automationRepo;
 }