Inheritance: IAppMessage
Esempio n. 1
0
 /// <summary>
 /// Processes a received error
 /// </summary>
 /// <param name="source">The address of the device that sent the error</param>
 /// <param name="message">The error</param>
 public void ProcessError(Address source, ErrorMessage message)
 {
     ClientTransaction tx = null;
     lock (_lock)
     {
         tx = _getClientTransaction(source, message.InvokeId);
     }
     if(tx != null)
         tx.OnError(message);
 }
Esempio n. 2
0
 /// <summary>
 /// Called whenever an error message is received
 /// for this transaction
 /// </summary>
 /// <param name="message">The error message</param>
 public void OnError(ErrorMessage message)
 {
     lock(_lock)
     {
         if (_state == ClientState.AwaitConfirmation)
         {
             _handle.FeedError(message.Error);
             _transitionTo(ClientState.Disposed);
         }
     }
 }