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