public CastleDynamicProxyFactory(CastleInterceptorFactory interceptorFactory) { ConfigureDynamicProxyToAvoidReplicatingProblematicAttributes(); _proxyGenerator = new ProxyGenerator(); _interceptorFactory = interceptorFactory; _allMethodsExceptCallRouterCallsHook = new AllMethodsExceptCallRouterCallsHook(); }
SubstitutionContext() { var callRouterFactory = new CallRouterFactory(); var interceptorFactory = new CastleInterceptorFactory(); var dynamicProxyFactory = new CastleDynamicProxyFactory(interceptorFactory); var delegateFactory = new DelegateProxyFactory(); var proxyFactory = new ProxyFactory(delegateFactory, dynamicProxyFactory); var callRouteResolver = new CallRouterResolver(); _substituteFactory = new SubstituteFactory(this, callRouterFactory, proxyFactory, callRouteResolver); }
public CastleDynamicProxyFactory(CastleInterceptorFactory interceptorFactory) { _proxyGenerator = new ProxyGenerator(); _interceptorFactory = interceptorFactory; _ignoreCallRouterCallsHook = new IgnoreCallRouterCallsHook(); }
public CastleDynamicProxyFactory(CastleInterceptorFactory interceptorFactory) { _proxyGenerator = new ProxyGenerator(); _interceptorFactory = interceptorFactory; _allMethodsExceptCallRouterCallsHook = new AllMethodsExceptCallRouterCallsHook(); }