Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
0
 protected void Application_End()
 {
     BusControl.StopBus();
     //StructureMapConfig.DisposeContainer();
 }