/// <summary> /// ConfigureServices /// </summary> /// <remarks> /// This method gets called by the runtime. Use this method to add services to the container. /// </remarks> public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseHttpsRedirection(); app.UseRewriter(new RewriteOptions().AddRedirectToHttps()); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseAuthentication(); app.UseMvc(); var swaggerStartupConfigure = new SwaggerStartupConfigure(app, false, "SwaggerAPI").RedirectToSwagger(); }
public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(); bool withInjectStyleSheet = true; string relativePathInjectStyleSheet = "../Stateless/swaggercustom.css"; string swaggerDocumentationRoute = "Swagger"; var swaggerStartupConfigure = new SwaggerStartupConfigure(app, withInjectStyleSheet, swaggerDocumentationRoute, relativePathInjectStyleSheet).RedirectToSwagger(); }
public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseMvc(); var swaggerStartupConfigure = new SwaggerStartupConfigure(app).RedirectToSwagger(); }