public void Login(ClientCredential user)
        {
            var callback = GetContext();
            var client   = new CrmClient(callback, user);

            if (_clients.TryAdd(callback, client))
            {
                client.Disconnected += ClientDisconnected;
            }

            OnNotificationReceived(new NotificationEventArgs()
            {
                Notification = string.Format("New client connected: {0} ({1})", user.UserName, user.PhoneNumber)
            });
        }
        public void Login(ClientCredential user)
        {
            var callback = GetContext();
            var client = new CrmClient(callback, user);

            if (_clients.TryAdd(callback, client))
                client.Disconnected += ClientDisconnected;

            OnNotificationReceived(new NotificationEventArgs() { Notification = string.Format("New client connected: {0} ({1})", user.UserName, user.PhoneNumber) });
        }