/// <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); }
public void Configure(IComponentsApplicationBuilder app) { app .UseBootstrapProviders() .UseFontAwesomeIcons(); app.AddComponent <App>("app"); }
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"); }