Continous Integration in der Praxis Gruppenarbeit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
779 B

2 years ago
  1. using System;
  2. using System.Net.Http;
  3. using System.Collections.Generic;
  4. using System.Threading.Tasks;
  5. using System.Text;
  6. using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
  7. using Microsoft.Extensions.Configuration;
  8. using Microsoft.Extensions.DependencyInjection;
  9. using Microsoft.Extensions.Logging;
  10. namespace BlazorMiniGames.Client
  11. {
  12. public class Program
  13. {
  14. public static async Task Main(string[] args)
  15. {
  16. var builder = WebAssemblyHostBuilder.CreateDefault(args);
  17. builder.RootComponents.Add<App>("#app");
  18. builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
  19. await builder.Build().RunAsync();
  20. }
  21. }
  22. }