Ejemplo n.º 1
0
        public static async Task Main(string[] args)
        {
            WebAssemblyHostBuilder builder = WebAssemblyHostBuilder.CreateDefault(args);

            builder.Services.AddScoped <IRestService, RestService>();
            builder.Services.AddForFoundationBlazorExtensions();
            builder.Services.AddForFeatureNavigation();

            builder.RootComponents.Add <App>("app");

            ComponentsElectron.Run <builder>("wwwroot/index.html");

            await builder.Build().RunAsync();
        }
Ejemplo n.º 2
0
 public static void Main(string[] args)
 {
     ComponentsElectron.Run <Startup>("wwwroot/index.html");
 }