コード例 #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");
        }