Esempio n. 1
0
 public static void Register(HttpConfiguration config)
 {
     AutofacRegister(config);
     DatabaseInitializer.Initialize();
     InitConfigData();
     AppContext.Logger.Info("startup app success.");
     DtoMapper.Initialize();
 }
Esempio n. 2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            DtoMapper.Initialize();
            DependecyRunningOn.Initialise();
            FluentValidationModelValidatorProvider.Configure();
        }