/// <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)); }
public void AddPipelinedBehavior(PipelinedBehavior behavior) { PipelinedBehaviors.Add(behavior); }