Esempio n. 1
0
        public void InsertAfter()
        {
            var behaviorList = new BehaviorList <FakeContext>
            {
                InnerList = new List <Type>
                {
                    typeof(Behavior1),
                    typeof(Behavior2),
                }
            };

            behaviorList.InsertAfter <Behavior1, Behavior3>();
            Assert.AreEqual(3, behaviorList.InnerList.Count);
            Assert.AreEqual(typeof(Behavior3), behaviorList.InnerList[1]);
        }
Esempio n. 2
0
 public void Override(BehaviorList <ReceivePhysicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter <ApplyIncomingTransportMessageMutatorsBehavior, IncomingHeaderBehavior>();
 }
Esempio n. 3
0
 public void Override(BehaviorList <SendPhysicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter <MutateOutgoingPhysicalMessageBehavior, OutgoingHeaderBehavior>();
 }
 public void Override(BehaviorList <ReceiveLogicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter <ApplyIncomingMessageMutatorsBehavior, StreamReceiveBehavior>();
 }
 public void Override(BehaviorList <SendLogicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter <MutateOutgoingMessageBehavior, StreamSendBehavior>();
 }
 public override void Override(BehaviorList<HandlerInvocationContext> behaviorList)
 {
     behaviorList.InsertAfter<InvokeHandlersBehavior, SampleBehavior>();
 }
 public void Override(BehaviorList<ReceivePhysicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter<ApplyIncomingTransportMessageMutatorsBehavior, IncomingHeaderBehavior>();
 }
 public void Override(BehaviorList<SendPhysicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter<MutateOutgoingPhysicalMessageBehavior, OutgoingHeaderBehavior>();
 }
 public void Override(BehaviorList<ReceiveLogicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter<ApplyIncomingMessageMutatorsBehavior, StreamReceiveBehavior>();
 }
 public void Override(BehaviorList<SendLogicalMessageContext> behaviorList)
 {
     behaviorList.InsertAfter<MutateOutgoingMessageBehavior, StreamSendBehavior>();
 }
 public override void Override(BehaviorList <HandlerInvocationContext> behaviorList)
 {
     behaviorList.InsertAfter <InvokeHandlersBehavior, SampleBehavior>();
 }