Shared : Presentation Blazor Server

The Shared.Presentation.BlazorServer project provides the configuration extensions specific to Blazor Server applications. It includes helpers for registering Blazor Server services, configuring the middleware pipeline, mapping endpoints, and setting up cookie-based culture switching.

Dependency Injection

The dependency injection extensions provide configuration helpers for Blazor Server service registration and middleware setup :
  • ServiceCollectionExtension : Provides the AddBlazorServerServices method that registers Razor components with interactive server rendering and enables response compression over HTTPS.
  • WebApplicationExtension : Provides three methods : UseCookieCulture maps a /SetCulture endpoint that sets the localization cookie, UseBlazorServerPipeline configures the middleware pipeline (HSTS, status code pages, HTTPS redirection, response compression, antiforgery), and UseBlazorServerEndpoints<TApp> maps static assets and Razor components with interactive server render mode.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.