private static void AutofacInit(List <Assembly> assemblys) { RegisterDsf(assemblys); RegisterBiz(assemblys); RegisterIntegration(assemblys); RegisterDal(assemblys); AutofacUtility.Build(); }
private static void RegisterDal(List <Assembly> assemblys) { var assembly = assemblys.First(u => u.CodeBase.ToLower().Contains(DAL_DLL)); AutofacUtility.RegisterAssembly(assembly); }
private static void RegisterIntegration(List <Assembly> assemblys) { var assembly = assemblys.First(u => u.CodeBase.ToLower().Contains(INTEGRATION_DLL)); AutofacUtility.RegisterAssembly(assembly); }