forked from AdrianWilczynski/CSharpToTypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
23 lines (19 loc) · 672 Bytes
/
Copy pathProgram.cs
File metadata and controls
23 lines (19 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using CSharpToTypeScript.Core.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using CSharpToTypeScript.Blazor.Pages;
namespace CSharpToTypeScript.Blazor
{
public static class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<Index>("app");
builder.Services.AddCSharpToTypeScript();
builder.Services.AddBaseAddressHttpClient();
await builder.Build().RunAsync();
}
}
}