示例#1
0
        private static void AutofacInit(List <Assembly> assemblys)
        {
            RegisterDsf(assemblys);
            RegisterBiz(assemblys);
            RegisterIntegration(assemblys);
            RegisterDal(assemblys);

            AutofacUtility.Build();
        }
示例#2
0
        private static void RegisterDal(List <Assembly> assemblys)
        {
            var assembly = assemblys.First(u => u.CodeBase.ToLower().Contains(DAL_DLL));

            AutofacUtility.RegisterAssembly(assembly);
        }
示例#3
0
        private static void RegisterIntegration(List <Assembly> assemblys)
        {
            var assembly = assemblys.First(u => u.CodeBase.ToLower().Contains(INTEGRATION_DLL));

            AutofacUtility.RegisterAssembly(assembly);
        }