// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseCookiePolicy();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Document}/{action=Index}/{id?}");
            });

            Runtime = WorkflowInit.Create(new DataServiceProvider(Container));
        }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RegisterMappings();
            var container = ConfigureContainer();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            Runtime = WorkflowInit.Create(new DataServiceProvider(container));
        }
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            RegisterMappings();

            var container = ConfigureContainer();

            Runtime            = WorkflowInit.Create(new DataServiceProvider(container));
            _containerProvider = new ContainerProvider(container);
        }