示例#1
0
        /// <summary>
        /// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        /// </summary>
        /// <param name="app">Application Builder</param>
        public void Configure(IApplicationBuilder app)
        {
            if (Environment.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }                       // Error Page Redirection

            //Localization.Configure(app);
            Swagger.Configure(app, Environment);
            HealthCheck.Configure(app);
            Compression.Configure(app);

            //app.UseAuthentication();
            app.UseHttpsRedirection();
            app.UseMvc();
        }