diff --git a/test.cs b/test.cs deleted file mode 100644 index 72b12401..00000000 --- a/test.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - - -namespace CC.Yi.API -{ - public class Startup - { - //动态 面向AOP思想的依赖注入 Autofac - public void ConfigureContainer(ContainerBuilder builder) - { - builder.RegisterType(typeof(CustomAutofacAop)); - builder.RegisterGeneric(typeof(BaseDal<>)).As(typeof(IBaseDal<>)); - builder.RegisterType().As().EnableInterfaceInterceptors();//表示注入前后要执行Castle,AOP - } - } -} \ No newline at end of file