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
692 B
26 lines
692 B
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CompanyName.ProjectName.Web.Blazor.WebAssembly
|
|
{
|
|
public class Program
|
|
{
|
|
public static async Task Main(string[] args)
|
|
{
|
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
var application = builder.AddApplication<ProjectNameWebBlazorWebAssemblyModule>(options =>
|
|
{
|
|
options.UseAutofac();
|
|
});
|
|
|
|
var host = builder.Build();
|
|
|
|
await application.InitializeAsync(host.Services);
|
|
|
|
await host.RunAsync();
|
|
}
|
|
}
|
|
}
|
|
|