main
 1namespace gorilla.commons.infrastructure.thirdparty.Castle.DynamicProxy
 2{
 3    public class CastleDynamicInterceptorConstraintFactory : InterceptorConstraintFactory
 4    {
 5        readonly MethodCallTrackerFactory factory;
 6
 7        public CastleDynamicInterceptorConstraintFactory() : this(new CastleDynamicMethodCallTrackerFactory())
 8        {
 9        }
10
11        public CastleDynamicInterceptorConstraintFactory(MethodCallTrackerFactory factory)
12        {
13            this.factory = factory;
14        }
15
16        public InterceptorConstraint<Type> CreateFor<Type>()
17        {
18            return new CastleDynamicInterceptorConstraint<Type>(factory.create_for<Type>());
19        }
20    }
21}