Beispiel #1
0
        public static async Task Main(string[] args)
        {
            var builder = WebAssemblyHostBuilder.CreateDefault(args);

            builder.Services
            .AddBlazorise(options =>
            {
                options.ChangeTextOnKeyPress = true;
            })
            .AddBootstrapProviders()
            .AddFontAwesomeIcons()
            .AddBlazorStyled();

            builder.RootComponents.Add <MyApp>("myApp");

            builder.Services.AddSingleton(sp => new HttpClient
            {
                BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
            });

            // componentsApplicationBuilder.AddComponent<ClientSideStyled>("#styled");

            HumanizerFunctions.Register();
            var host = builder.Build();

            host.Services
            .UseBootstrapProviders()
            .UseFontAwesomeIcons();

            await host.RunAsync();
        }
 public static void ClassInitialize(TestContext context)
 {
     HumanizerFunctions.Register();
 }