Ejemplo n.º 1
0
 protected override void OnBefore(IMethodInvocation mi)
 {
     CallbackCollection.ForEach(c => c.Accept(visitor));
     visitor.OnBeforeCallbackCollection.ForEach(c => c.Run(mi));
 }
Ejemplo n.º 2
0
 public InterceptorState(MethodSignature ms, CallbackCollection callbacks)
 {
     this.MethodSignature    = ms;
     this.CallbackCollection = callbacks;
     this.visitor            = new SelectCallbackVisitor();
 }