Program.cs 512 Bytes
Newer Older
1
2
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
3
using System.Threading.Tasks;
4
5
6
7
8

namespace BlazingPizza.Client
{
    public class Program
    {
9
        public static async Task Main(string[] args)
10
        {
11
12
            var builder = WebAssemblyHostBuilder.CreateDefault(args);
            builder.RootComponents.Add<App>("app");
13

14
15
            builder.Services.AddBaseAddressHttpClient();

16
17
            await builder.Build().RunAsync();
        }
18
19
    }
}