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.

27 lines
878 B

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