Example #1
0
        public void InvokeLogicalMessagePipeline(LogicalMessage message)
        {
            var pipeline = new BehaviorChain <ReceiveLogicalMessageContext>(pipelineBuilder.receiveLogicalMessageBehaviorList);
            var context  = new ReceiveLogicalMessageContext(CurrentContext, message);

            Execute(pipeline, context);
        }
 public void Invoke(ReceiveLogicalMessageContext context, Action next)
 {
     //filter out messages of type MessageToBeAudited
     if (context.LogicalMessage.MessageType == typeof(MessageToBeAudited))
     {
         context.Get <AuditFilterResult>().DoNotAuditMessage = true;
     }
 }