Example #1
0
 /// <summary>
 /// Processes a received simple ack
 /// </summary>
 /// <param name="source">The address of the device that sent the ack</param>
 /// <param name="message">The simple ack</param>
 public void ProcessSimpleAck(Address source, SimpleAckMessage message)
 {
     ClientTransaction tx = null;
     lock (_lock)
     {
         tx = _getClientTransaction(source, message.InvokeId);
     }
     if(tx != null)
         tx.OnSimpleAck(message);
 }
Example #2
0
 /// <summary>
 /// Called whenever a simple ack is received
 /// for this transaction
 /// </summary>
 /// <param name="message">The received message</param>
 public void OnSimpleAck(SimpleAckMessage message)
 {
     lock(_lock)
     {
         if (_state == ClientState.AwaitConfirmation)
         {
             _handle.FeedSimpleAck();
             _manager.DisposeTransaction(this);
         }
     }
 }