protected override void OnApplicationStarted() { RegisterRoutes(); StorageExtensions.Setup(); // Always call this method before starting any EPCIS application // Start the Subscription Runner. _subscriptionRunner = _kernel.Get <ISubscriptionRunner>(); _subscriptionRunner.Start(); }
protected void Application_Start() { StorageExtensions.Setup(); // Always call this method before starting any EPCIS application (web/desktop) GlobalConfiguration.Configuration.Formatters.Clear(); GlobalConfiguration.Configuration.Formatters.Add(new CustomXmlFormatter()); GlobalConfiguration.Configure(WebApiConfig.Register); NinjectHttpContainer.RegisterModules(NinjectHttpModules.Modules); }