main
1using Castle.DynamicProxy;
2
3namespace solidware.financials.infrastructure
4{
5 public class CastleProxyFactory : IProxyFactory
6 {
7 ProxyGenerator generator = new ProxyGenerator();
8
9 public Interface CreateProxyFor<Interface>(Interface target, params IInterceptor[] interceptors)
10 where Interface : class
11 {
12 return generator.CreateInterfaceProxyWithTarget(target, interceptors);
13 }
14 }
15}