Пример #1
0
 /// <summary>
 /// Configure.
 /// </summary>
 /// <param name="app">Aplicación.</param>
 /// <param name="env">Ambiente.</param>
 public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
 {
     _ = app.UseSwagger();
     _ = app.UseSwaggerUI(configuration =>
     {
         configuration.SwaggerEndpoint("../swagger/v1/swagger.json", GlobalResource.SwaggerTitle);
         configuration.RoutePrefix = "Documentation";
         configuration.DisplayRequestDuration();
     });
     IoCRegister.AddConfiguration(app, env);
 }