Shared : Presentation

The Shared.Presentation project provides cross-cutting configuration extensions for the presentation layer of ASP.NET Core applications. It includes helpers for Serilog logging setup, localization configuration, request localization middleware, and FluentValidation display name resolution using resource files.

Dependency Injection

The dependency injection extensions provide configuration helpers for logging, localization, request localization, and validation display names :
  • HostApplicationBuilderExtension : Provides AddSerilog to configure Serilog with a bootstrap logger (console and/or debug output) and read full configuration from app settings, and AddLocalization to register localization services and validate the LocalizationOption using FluentValidation.
  • ApplicationBuilderExtension : Provides UseSerilogRequestLogger to enable Serilog request logging middleware, UseConfiguredRequestLocalization to configure request localization based on LocalizationOption, and UseConfiguredRequestLocalizationAcceptLanguageHeaderRequest to restrict culture providers to the Accept-Language header only.
  • HostExtension : Provides UseFluentValidationDisplayNameResolver to set a global FluentValidation display name resolver that resolves property names from application and domain resource files, falling back to the domain resource if the key is not found in the application resource.
  • WebApplicationExtension : An empty extension class reserved for future WebApplication-specific middleware or configuration extensions.

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.