public Agent(string userName, string password, IUiState uiState) { UiState = uiState; UserName = userName; Password = password; var settingObject = System.Configuration.ConfigurationSettings.AppSettings; Company = int.Parse(settingObject["Company"]); ShowCallAlert = settingObject["ShowCallAlert"].Equals("1"); AgentCurrentState = new AgentInitiate(); IP = GetLocalIpAddress(); }
public Agent(string sessionId, IUiState uiState) { try { AgentLoginSessionId = sessionId; UiState = uiState; AgentCurrentState = new AgentInitiate(); InitializeArdsEvent(); LastActivity = DateTime.Now; Profile = AgentProfile.Instance; } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger2, "Agent", exception, Logger.LogLevel.Error); } }
public Agent(UserAuth auth, Dictionary <string, object> sipSetting, string ip, string sessionId, IUiState uiState) { try { Auth = auth; SipSetting = sipSetting; IP = ip; AgentLoginSessionId = sessionId; UiState = uiState; AgentCurrentState = new AgentInitiate(); ardsHandler = new ResourceHandler(auth.SecurityToken, auth.TenantID, auth.CompanyID); InitializeArdsEvent(); CallHandler = new CallHandler(auth.SecurityToken, auth.TenantID, auth.CompanyID); LastActivity = DateTime.Now; } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger2, "Agent", exception, Logger.LogLevel.Error); } }