public void RemoveUser(string username) { username = username.ToLower().Trim(); IBUser user = GetUser(username); if (user != null) { user.UnsubscribeAccountUpdates(); user.Disconnect(); _IBUserMap.TryRemove(username, out user); } }
public bool UnsubscribeAccountUpdates(string userName) { try { IBUser user = _userManager.GetUser(userName); if (user != null) { return(user.UnsubscribeAccountUpdates()); } return(false); } catch (Exception ex) { _Logger.Error(ex); throw ex; } }