Esempio n. 1
0
        /// <summary>
        /// Registers the custom rules for material components.
        /// </summary>
        /// <param name="app"></param>
        /// <returns></returns>
        public static IComponentsApplicationBuilder UseMaterialProviders(this IComponentsApplicationBuilder app)
        {
            // same components as in bootstrap provider
            app.UseBootstrapProviders();

            return(app);
        }
Esempio n. 2
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            app
            .UseBootstrapProviders()
            .UseFontAwesomeIcons();

            app.AddComponent <App>("app");
        }
Esempio n. 3
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            app
            .UseBootstrapProviders()
            .UseFontAwesomeIcons();

            if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("WEBASSEMBLY")))
            {
                // Needed because the test server runs on a different port than the client app,
                // and we want to test sending/receiving cookies underling this config
                WebAssemblyHttpMessageHandler.DefaultCredentials = FetchCredentialsOption.Include;
            }

            app.AddComponent <Index>("root");
        }