components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.intro
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.modes-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-pro-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-pro-2
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-pro-3
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-tradeoffs
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-con-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.server-con-2
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-pro-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-pro-2
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-pro-3
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-tradeoffs
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-con-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-con-2
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.wasm-con-3
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-pro-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-pro-2
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-tradeoffs
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-con-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.auto-con-2
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.tip-label
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.this-site-note
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.picking-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.picking-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.picking-server
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.picking-wasm
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.picking-auto
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-sheet-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-sheet-description
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-layout-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-layout-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-layout-server
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-layout-wasm
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-layout-auto
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-csproj-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-csproj-description
<!-- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-csproj-server-comment -->
<Project Sdk="Microsoft.NET.Sdk.Razor">
<!-- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-csproj-wasm-auto-comment -->
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-csproj-packages
<!-- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-csproj-server-pkg-comment -->
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
<!-- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-csproj-client-pkg-comment -->
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="PowerPortalsPro.Web.Client" />
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-program-register-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-program-register-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-register-server-comment
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-register-wasm-comment
builder.Services.AddRazorComponents()
.AddInteractiveWebAssemblyComponents()
.AddAuthenticationStateSerialization();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-register-auto-comment
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents()
.AddAuthenticationStateSerialization();
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-program-map-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-program-map-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-map-server-comment
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
.AddAdditionalAssemblies(typeof(MyApp.Client._Imports).Assembly);
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-map-wasm-comment
app.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(MyApp.Client._Imports).Assembly);
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-map-auto-comment
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(MyApp.Client._Imports).Assembly);
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-app-razor-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-app-razor-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-app-razor-server-comment
return new InteractiveServerRenderMode();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-app-razor-wasm-comment
if (HttpContext.Request.Path.StartsWithSegments("/Account"))
return new InteractiveWebAssemblyRenderMode(prerender: false);
return new InteractiveWebAssemblyRenderMode();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-app-razor-auto-comment
if (HttpContext.Request.Path.StartsWithSegments("/Account"))
return new InteractiveWebAssemblyRenderMode(prerender: false);
return new InteractiveAutoRenderMode();
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-app-razor-note-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-app-razor-note-description
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-client-program-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-client-program-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-client-program-comment
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.Services.AddFluentUIComponents();
builder.Services.AddSingleton<CookieCredentialsHandler>();
builder.Services.AddHttpClient("PowerPortalsPro", client =>
client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
.AddHttpMessageHandler<CookieCredentialsHandler>();
builder.Services.AddSingleton(sp =>
sp.GetRequiredService<IHttpClientFactory>().CreateClient("PowerPortalsPro"));
builder.Services.AddPowerPortalsProWebClient();
var app = builder.Build();
await app.UserPowerPortalsProWebClient(
LocalizationBaselines.Default.Concat(new[] { "app" }).ToArray());
await app.RunAsync();
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-auth-pages-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-auth-pages-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-auth-pages-server
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.cheat-auth-pages-wasm
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-auth-pages-server-comment
app.MapAdditionalIdentityEndpoints();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.snippet-auth-pages-wasm-comment
app.MapAuthEndpoints<PortalUser>();
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.next-steps-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.InteractivityModesPage.next-steps-description
