/// <summary> /// AgentsController constructor /// </summary> /// <param name="agentRepository"></param> /// <param name="personRepository"></param> /// <param name="usersRepository"></param> /// <param name="membershipManager"></param> /// <param name="userManager"></param> /// <param name="agentManager"></param> /// <param name="accessor"></param> /// <param name="configuration"></param> /// <param name="webhookPublisher"></param> public AgentsController( IAgentRepository agentRepository, IAgentHeartbeatRepository agentHeartbeatRepository, IMembershipManager membershipManager, IWebhookPublisher webhookPublisher, ApplicationIdentityUserManager userManager, IAgentManager agentManager, IHttpContextAccessor accessor, IConfiguration configuration) : base(agentRepository, userManager, accessor, membershipManager, configuration) { _agentRepo = agentRepository; _agentHeartbeatRepo = agentHeartbeatRepository; _agentManager = agentManager; _agentManager.SetContext(SecurityContext); _webhookPublisher = webhookPublisher; _accessor = accessor; }