static void ContextBoundObjectInterceptor(ContextBoundObject instance) { //Context bound object interceptor var interceptor = new ContextBoundObjectInterceptor(); var canIntercept = interceptor.CanIntercept(instance); var myProxy = interceptor.Intercept(instance, null, new MyHandler()) as IMyType; //var proxy = myProxy as IInterceptionProxy; //var otherInterceptor = proxy.Interceptor; var result = myProxy.MyMethod(); Assert.AreEqual(20, result); }