Example #1
0
 void Transport_FinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs e)
 {
     if (context.FaultManagerInvoked)
     {
         context.FinishedMessageProcessingCalledAfterFaultManagerInvoked = true;
     }
 }
Example #2
0
 void TransportFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs e)
 {
     modules.ForEach(module =>
     {
         Log.Debug("Calling 'HandleEndMessage' on " + module.GetType().FullName);
         module.HandleEndMessage();
     });
 }
        void TransportOnFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs e)
        {
            //if there was a failure this "send" will be rolled back
            string messageSessionId;
            e.Message.Headers.TryGetValue(Headers.WorkerSessionId, out messageSessionId);

            //If the message we are processing contains an old sessionid then we do not send an extra control message
            //otherwise that would cause https://github.com/Particular/NServiceBus/issues/978
            if (messageSessionId == workerSessionId)
            {
                SendReadyMessage(messageSessionId);
            }
        }
Example #4
0
        void TransportOnFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs e)
        {
            //if there was a failure this "send" will be rolled back
            string messageSessionId;

            e.Message.Headers.TryGetValue(Headers.WorkerSessionId, out messageSessionId);

            //If the message we are processing contains an old sessionid then we do not send an extra control message
            //otherwise that would cause https://github.com/Particular/NServiceBus/issues/978
            if (messageSessionId == workerSessionId)
            {
                SendReadyMessage(messageSessionId);
            }
        }
Example #5
0
 void TransportFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs e)
 {
     try
     {
         modules.ForEach(module =>
         {
             Log.Debug("Calling 'HandleEndMessage' on " + module.GetType().FullName);
             module.HandleEndMessage();
         });
     }
     finally
     {
         PipelineFactory.CompletePhysicalMessagePipelineContext();
     }
 }
Example #6
0
 void TransportOnFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs eventArgs)
 {
     //if there was a failure this "send" will be rolled back
     SendReadyMessage();
 }
Example #7
0
 void TransportFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs e)
 {
     PipelineFactory.CompletePhysicalMessagePipelineContext();
 }
Example #8
0
 void TransportOnFinishedMessageProcessing(object sender, FinishedMessageProcessingEventArgs eventArgs)
 {
     //if there was a failure this "send" will be rolled back
     SendReadyMessage();
 }