public void ConfigureServices(IServiceCollection services) { ConfigurarInjecoesDependencia(services); ConfiguracaoAPI.ImplementarConfiguracoesServicos(services); ConfiguracaoAPI.ImplementarMandradePKGS(services, Configuration, GetType()); services.AddMvc(cnf => ConfiguracaoAPI.ImplementarConfiguracoesMvc(cnf)); }
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } SwaggerParametros parametros = new SwaggerParametros("PadraoAPI", "V1"); ConfiguracaoAPI.ImplementarConfiguracoesMiddlewares(app, parametros); }