Esempio n. 1
0
 static public IRegistrationBuilder <Interface, SimpleActivatorData, SingleRegistrationStyle> RegisterProxy
 <Interface, Implementation>(
     this ContainerBuilder builder, params IInterceptor[] interceptors) where Implementation : Interface where Interface : class
 {
     builder.RegisterType <Implementation>();
     return(builder.Register(x => factory.CreateProxyFor <Interface>(x.Resolve <Implementation>(), interceptors)).As <Interface>());
 }