components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.intro
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.tip-label
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.scaffold-tip
dotnet new powerportalspro -o MyPortal-Reference --interactivity Auto
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-to-interactive-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-to-interactive-description
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step1-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step1-description
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<StaticWebAssetProjectMode>Default</StaticWebAssetProjectMode>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" />
<PackageReference Include="PowerPortalsPro.Web.Client" />
<PackageReference Include="PowerPortalsPro.Web.Blazor.FluentUI" />
<PackageReference Include="PowerPortalsPro.Web.Common" />
</ItemGroup>
</Project>
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step1-csproj-description
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step2-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step2-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step2-replace-comment
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step2-with-auto-comment
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents()
.AddAuthenticationStateSerialization();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step2-or-wasm-comment
builder.Services.AddRazorComponents()
.AddInteractiveWebAssemblyComponents()
.AddAuthenticationStateSerialization();
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step3-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step3-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step3-auto-comment
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(MyApp.Client._Imports).Assembly);
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step3-wasm-comment
app.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(MyApp.Client._Imports).Assembly);
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step4-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step4-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step4-app-razor-comment
if (HttpContext.Request.Path.StartsWithSegments("/Account"))
return new InteractiveWebAssemblyRenderMode(prerender: false);
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step4-auto-comment
return new InteractiveAutoRenderMode();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step4-wasm-comment
return new InteractiveWebAssemblyRenderMode();
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step4-note
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step5-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step5-description
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.FluentUI.AspNetCore.Components;
using PowerPortalsPro.Web.Blazor.FluentUI;
using PowerPortalsPro.Web.Client;
using PowerPortalsPro.Web.Client.Services;
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.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddAuthenticationStateDeserialization();
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.SwitchInteractivityPage.server-step6-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step6-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step6-add-comment
app.MapAuthEndpoints<PortalUser>();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step6-swap-comment-line1
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step6-swap-comment-line2
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.snippet-step6-disable-comment
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step6-note
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step7-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step7-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step7-bullet-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step7-bullet-2
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step7-bullet-3
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step8-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.server-step8-description
if (app.Environment.IsDevelopment())
{
app.UseWebAssemblyDebugging();
app.UseWhen(
ctx => ctx.Request.Path.StartsWithSegments("/api"),
branch => branch.UseExceptionHandler());
}
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-bullet-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-bullet-2
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-bullet-3
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-bullet-4
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-bullet-5
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.interactive-to-server-bullet-6
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.between-auto-wasm-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.between-auto-wasm-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.between-auto-wasm-bullet-1
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.between-auto-wasm-bullet-2
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.between-auto-wasm-bullet-3
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-description
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-bullet-build
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-bullet-login
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-bullet-interactive
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-bullet-bundle
- components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.verify-bullet-account
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.note-label
components.PowerPortalsPro.Demo.Client.Customizations.Pages.GettingStarted.SwitchInteractivityPage.di-note
