Beispiel #1
0
        private void ChatClient_OnGotError(object sender, ErrorEventArgs e)
        {
            Exception exception;

            switch (e.Error)
            {
            case ErrorKind.DuplicateId:
                exception = new DuplicateIdException();
                break;

            default:
                throw new InvalidOperationException();
            }
            _logOnToken.TheTask.SetException(exception);
            // _logOnToken = null;
        }
Beispiel #2
0
        private void ChatClient_OnGotError(object sender, ErrorEventArgs e)
        {
            Exception exception;

            switch(e.Error)
            {
                case ErrorKind.DuplicateId:
                    exception = new DuplicateIdException();
                    break;
                default:
                    throw new InvalidOperationException();
            }
            _logOnToken.TheTask.SetException(exception);
           // _logOnToken = null;         
        }