Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }