Exemplo n.º 1
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, IInitDb initDb)
        {
            app.UseDeveloperExceptionPage();
            app.UseStaticFiles();

            // Remember to call UseUserService before UseMvc
            app.UseUserService();
            app.UseMvc();

            initDb.InitAsync().Wait();
        }
Exemplo n.º 2
0
        public void Configure(IApplicationBuilder app, IInitDb initDb)
        {
            if (Environment.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.UseUserService();
            app.UseMvc();

            initDb.InitAsync().Wait();
        }