示例#1
0
 public bool TryEnqueueRecoveryOutcome(ParticipantCallbackEvent e)
 {
     lock (this.recoveryLock)
     {
         if (!this.recovering)
         {
             return(false);
         }
         if (DebugTrace.Info)
         {
             ParticipantEnlistment participant = e.Participant;
             DebugTrace.TxTrace(TraceLevel.Info, participant.EnlistmentId, "Queuing recovery outcome {0} for participant at {1}", e, Ports.TryGetAddress(participant.ParticipantProxy));
         }
         this.recoveryQueue.Enqueue(e);
     }
     return(true);
 }
示例#2
0
 private void TraceTmEvent(ParticipantCallbackEvent e)
 {
     DebugTrace.TxTrace(TraceLevel.Info, e.Enlistment.EnlistmentId, "{0} for {1}", e, Ports.TryGetAddress(e.Participant.ParticipantProxy));
 }