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()); }
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; }