public IActionResult UnregisterAgent( [FromBody] int agentId, [FromServices] AgentRegistratorService agentRegistrator) { agentRegistrator.Unregister(agentId); return(Ok()); }
public IActionResult RegisterAgent( [FromBody] AgentInfo agentInfo, [FromServices] AgentRegistratorService agentRegistrator) { agentRegistrator.Register(agentInfo); return(Ok()); }
public async Task <IActionResult> GetAgentsAsync([FromServices] AgentRegistratorService agentRegistrator) { return(Ok(await agentRegistrator.GetRegisteredAsync())); }