protected void ucLogOn_LoggingOut(object sender, UcUserArgs e) { switch (e.UserRoleId) { case 1: // Admin break; case 2: // Agent Int32 agentId = ProxyHelper.GetUserAgentId(e.UserId); AgentPool agentPool = (AgentPool)Application["AgentPool"]; agentPool.UnRegisterAgent(agentId); break; case 3: // Manager break; case 5: // Supervisor break; default: break; } }
protected void btnReset_Click(object sender, EventArgs e) { agentPool.UnRegisterAgent(agentId); updateAgentStatus(); }