/// <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 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;
 }
示例#3
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;
 }
示例#4
0
 public ScheduleManager(IScheduleRepository repo, IScheduleParameterRepository scheduleParameterRepository,
                        IAgentRepository agentRepository,
                        IAutomationRepository automationRepository,
                        IAgentGroupRepository agentGroupRepository)
 {
     _repo = repo;
     _scheduleParameterRepository = scheduleParameterRepository;
     _agentRepository             = agentRepository;
     _automationRepository        = automationRepository;
     _agentGroupRepository        = agentGroupRepository;
 }
示例#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;
 }
示例#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;
 }
示例#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());
 }
示例#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;
 }
示例#10
0
 public AutomationExecutionLogManager(IAutomationExecutionLogRepository automationExecutionLogRepo, IAgentRepository agentRepo, IAutomationRepository automationRepo)
 {
     this.repo           = automationExecutionLogRepo;
     this.agentRepo      = agentRepo;
     this.automationRepo = automationRepo;
 }
示例#11
0
 public AutomationExecutionLogManager(IAutomationExecutionLogRepository automationExecutionLogRepo, IAgentRepository agentRepo, IAutomationRepository automationRepo)
 {
     _repo           = automationExecutionLogRepo;
     _agentRepo      = agentRepo;
     _automationRepo = automationRepo;
 }