ant-design-blazor/site/AntBlazor.Docs.ClientApp/Program.cs
2020-03-13 14:10:33 +08:00

20 lines
565 B
C#

using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
namespace AntBlazor.Docs.ClientApp
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.Services.AddBaseAddressHttpClient();
builder.Services.AddAntBlazorDocs();
await builder.Build().RunAsync();
}
}
}