Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        protected void Application_Start()
        {
            LoggerGlobal.GlobalInit();
            AutoMapperConfig.Initialize();
            RegisterAndResolverIoc();

            GlobalConfiguration.Configure(WebApiConfig.Register);
        }
Exemplo n.º 2
0
 protected void Application_Start()
 {
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     LoggerGlobal.GlobalInit();
     AutoMapperConfig.Initialize();
     RegisterAndResolverIoc();
 }
Exemplo n.º 3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //启动日志服务
            LoggerGlobal.GlobalInit();
        }
Exemplo n.º 4
0
        protected void Application_Start()
        {
            //初始化日志组件
            LoggerGlobal.GlobalInit();

            GlobalConfiguration.Configure(WebApiConfig.Register);

            AutoMapperConfig.Initialize();

            GlobalConfiguration.Configuration.MessageHandlers.Add(new AuthorizationHandler());

            RegisterAndResolverIoc();
        }
Exemplo n.º 5
0
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            LoggerGlobal.GlobalInit();
            RegisterAndResolverIoc();//注册服务
            AutoMapperConfig.Initialize();

            //ServiceBase[] ServicesToRun;
            //ServicesToRun = new ServiceBase[]
            //{
            //    new Service1()
            //};
            //ServiceBase.Run(ServicesToRun);


            Application.Run(new Form1());
        }