示例#1
0
        protected void Application_Start()
        {
            try
            {
                var initializer = new CalculationContextInitializer();
                Database.SetInitializer(initializer);
                BusControl.InitializeBus();
                //StructureMapConfig.SetupContainer();

                GlobalConfiguration.Configure(WebApiConfig.Register);
            }
            catch (System.Exception ex)
            {
                Logger.Instance.Fatal(@"Startup Error.", ex);
                throw;
            }
        }
示例#2
0
 protected void Application_End()
 {
     BusControl.StopBus();
     //StructureMapConfig.DisposeContainer();
 }