protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            TimerManagerConfig.initializeTimerManager();
            HearConfig.initializeHear();
            //Mapper.Initialize(t => ConverterConfig.configConverters(t));

            var config = new MapperConfiguration(cfg => ConverterConfig.configConverters(cfg));
            var mapper = config.CreateMapper();

            ConverterConfig.Mapper = mapper;
        }
Exemple #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            TimerManagerConfig.initializeTimerManager();
            ProducerAndConsumerMediatorConfig.initializeProducerAndConsumerMediator();
            //Mapper.Initialize(t => ConverterConfig.configConverters(t));

            var config = new MapperConfiguration(cfg => ConverterConfig.configConverters(cfg));
            var mapper = config.CreateMapper();

            ConverterConfig.Mapper = mapper;
            AutofacConfig.configAutofac();
        }