Program.cs 454 B

123456789101112131415161718192021222324
  1. var builder = WebApplication.CreateBuilder(args);
  2. // Add services to the container.
  3. builder.Services.AddDaprClient();
  4. builder.Services.AddRazorPages();
  5. //builder.WebHost.UseUrls("http://*:50112");
  6. var app = builder.Build();
  7. // Configure the HTTP request pipeline.
  8. //if (!app.Environment.IsDevelopment())
  9. //{
  10. app.UseExceptionHandler("/Error");
  11. //}
  12. app.UseStaticFiles();
  13. app.UseRouting();
  14. app.UseAuthorization();
  15. app.MapRazorPages();
  16. app.Run();