示例#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);
        }
示例#2
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            app
            .UseBootstrapProviders()
            .UseFontAwesomeIcons();

            app.AddComponent <App>("app");
        }
示例#3
0
文件: Startup.cs 项目: tesm/Blazorise
        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");
        }