Beispiel #1
0
        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();
        }
Beispiel #2
0
        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);
        }