Getting Started — DMBServerHelper

Initialize shared server services before higher-level modules.

1. Configure Services

DMBServerHelper is usually registered early in the application startup sequence. It prepares common server configuration, resource localization and helper conventions used by the rest of the stack.

Program.cs
ServerHelperConfiguration.LoadCommonConfig(builder);
ServerHelperConfiguration.Config.CookiePrefix = "BBT";

2. Choose Cookie Prefix

Choose the application cookie prefix so shared helpers generate predictable names. Set Config.CookiePrefix immediately after loading the common configuration.

3. Register Localization

Register server-side localization resources before views and validation messages need them. Use ServerHelperLocalization to expose resource strings used internally by the package.

4. Define Cookie Keys

Define cookie and session values through typed definitions instead of repeating string keys. Use CookieDefinition and SessionDefinition to keep state access centralized.

Key API
ServerHelperConfiguration
.Config.CookiePrefix
ServerHelperLocalization
CookieDefinition
SessionDefinition

Understand the layer responsibilities

Learn how DMBServerHelper fits into the overall DMB stack and its extension points.

Architecture