public AgentManager(IAgentRepository agentRepository,
                     IScheduleRepository scheduleRepository,
                     IJobRepository jobRepository,
                     IAspNetUsersRepository usersRepository,
                     ICredentialRepository credentialRepository,
                     IAgentHeartbeatRepository agentHeartbeatRepository,
                     ApplicationIdentityUserManager userManager,
                     IPersonRepository personRepository,
                     IAgentGroupMemberRepository agentGroupMemberRepository,
                     IJobManager jobManager,
                     IWebhookPublisher webhookPublisher,
                     IHttpContextAccessor httpContextAccessor,
                     IAgentGroupRepository agentGroupRepository)
 {
     _agentRepo                  = agentRepository;
     _scheduleRepo               = scheduleRepository;
     _jobRepo                    = jobRepository;
     _usersRepo                  = usersRepository;
     _credentialRepo             = credentialRepository;
     _agentHeartbeatRepo         = agentHeartbeatRepository;
     _userManager                = userManager;
     _personRepo                 = personRepository;
     _agentGroupMemberRepository = agentGroupMemberRepository;
     _jobManager                 = jobManager;
     _agentGroupRepository       = agentGroupRepository;
     _webhookPublisher           = webhookPublisher;
     _caller = ((httpContextAccessor.HttpContext != null) ? httpContextAccessor.HttpContext.User : new ClaimsPrincipal());
 }
Esempio n. 2
0
 public ScheduleManager(IScheduleRepository repo, IScheduleParameterRepository scheduleParameterRepository,
                        IAgentRepository agentRepository,
                        IAutomationRepository automationRepository,
                        IAgentGroupRepository agentGroupRepository)
 {
     _repo = repo;
     _scheduleParameterRepository = scheduleParameterRepository;
     _agentRepository             = agentRepository;
     _automationRepository        = automationRepository;
     _agentGroupRepository        = agentGroupRepository;
 }
Esempio n. 3
0
 /// <summary>
 /// AgentGroupsController constructor
 /// </summary>
 /// <param name="membershipManager"></param>
 /// <param name="userManager"></param>
 /// <param name="accessor"></param>
 /// <param name="configuration"></param>
 public AgentGroupsController(
     IAgentGroupRepository agentGroupRepository,
     ApplicationIdentityUserManager userManager,
     IHttpContextAccessor accessor,
     IMembershipManager membershipManager,
     IConfiguration configuration,
     IAgentGroupManager agentGroupsManager,
     IWebhookPublisher webhookPublisher) : base(agentGroupRepository, userManager, accessor, membershipManager, configuration)
 {
     _agentGroupsManager   = agentGroupsManager;
     _webhookPublisher     = webhookPublisher;
     _agentGroupRepository = agentGroupRepository;
 }
Esempio n. 4
0
 public AgentGroupManager(
     IAgentGroupRepository agentGroupRepository,
     IAgentGroupMemberRepository agentGroupMemberRepository,
     IHttpContextAccessor httpContextAccessor,
     IAgentRepository agentRepository,
     IWebhookPublisher webhookPublisher
     )
 {
     _agentGroupRepository       = agentGroupRepository;
     _agentGroupMemberRepository = agentGroupMemberRepository;
     _caller           = ((httpContextAccessor.HttpContext != null) ? httpContextAccessor.HttpContext.User : new ClaimsPrincipal());
     _agentRepository  = agentRepository;
     _webhookPublisher = webhookPublisher;
 }
 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());
 }