public void InsertBefore() { var behaviorList = new BehaviorList <FakeContext> { InnerList = new List <Type> { typeof(Behavior1), typeof(Behavior2), } }; behaviorList.InsertBefore <Behavior2, Behavior3>(); Assert.AreEqual(3, behaviorList.InnerList.Count); Assert.AreEqual(typeof(Behavior3), behaviorList.InnerList[1]); }
public override void Override(BehaviorList <HandlerInvocationContext> behaviorList) { behaviorList.InsertBefore <InvokeHandlersBehavior, CaptureChildBuilderBehavior>(); }
public void Override(BehaviorList <HandlerInvocationContext> behaviorList) { behaviorList.InsertBefore <InvokeHandlersBehavior, HandlerTimerBehavior>(); }
public override void Override(BehaviorList <HandlerInvocationContext> behaviorList) { //add our behavior to the pipeline just before NSB actually calls the handlers behaviorList.InsertBefore <InvokeHandlersBehavior, MyExceptionFilteringBehavior>(); }
public void Override(BehaviorList<HandlerInvocationContext> behaviorList) { behaviorList.InsertBefore<InvokeHandlersBehavior, HandlerTimerBehavior>(); }