/// <summary>
        /// Returns a compiled message pipeline.
        /// </summary>
        public Action <MessageContext> GetCompiledMessageHandlerPipeline()
        {
            var messageHandlerPipelinedBehaviors = ServiceBusConfig.PipelinedBehaviors.ToList(); // copy the list

            messageHandlerPipelinedBehaviors.RemoveAll(x => x is MessageHandlerDispatchBehavior);
            messageHandlerPipelinedBehaviors.Add(new MessageHandlerDispatchBehavior());
            return(PipelinedBehavior.CompileMessageHandlerPipeline(messageHandlerPipelinedBehaviors));
        }
Ejemplo n.º 2
0
 public void AddPipelinedBehavior(PipelinedBehavior behavior)
 {
     PipelinedBehaviors.Add(behavior);
 }