Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Startup.cs 987B

12345678910111213141516171819202122232425262728293031323334
  1. using Microsoft.AspNetCore.Builder;
  2. using Microsoft.AspNetCore.Hosting;
  3. using Microsoft.Extensions.Configuration;
  4. using Microsoft.Extensions.DependencyInjection;
  5. namespace Luticate2.Mvc.Auth.WebApiSample
  6. {
  7. public class Startup
  8. {
  9. public Startup(IConfiguration configuration)
  10. {
  11. Configuration = configuration;
  12. }
  13. public IConfiguration Configuration { get; }
  14. // This method gets called by the runtime. Use this method to add services to the container.
  15. public void ConfigureServices(IServiceCollection services)
  16. {
  17. services.AddMvc();
  18. }
  19. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
  20. public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  21. {
  22. if (env.IsDevelopment())
  23. {
  24. app.UseDeveloperExceptionPage();
  25. }
  26. app.UseMvc();
  27. }
  28. }
  29. }