/// <summary> /// Resgata instancia unica da classe FaxService /// </summary> /// <returns>FaxServer</returns> public static FaxServer getFaxServerIntance() { if (rfLoginService == null) { rfLoginService = new FaxServerService(); } return(rfLoginService.getFaxServer()); }
/// <summary> /// Construtor padrao /// </summary> public UserService() { Users users = FaxServerService.getFaxServerIntance().Users; mapUsers = new Dictionary <string, User>(); foreach (User us in users) { if (us.ID.ToUpper().Equals(PropertiesUtil.getInstance().getProperties("rf_user_id").ToUpper())) { origemFaxBox = us; } if (!mapUsers.ContainsKey(us.RoutingCode)) { mapUsers.Add(us.RoutingCode, us); } } }