SettingsUnitHelper - класс

Provides helper methods and constants for working with settings units and their fragments.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public static class SettingsUnitHelper
Inheritance
Object    SettingsUnitHelper

Методы

AssertPatternOrThrow Throws an exception if the specified value does not match the required regex pattern.
GenerateFragmentID Generates a deterministic UUID v5 by RFC 4122 for the settings fragment based on unitID and fragmentName.
GetInitializationLockingKey Returns the key used to store lock information for global cache initialization in Redis.
GetLockingKey Returns the key used to store lock information for settings unit with id in Redis.
ThrowIfNotPattern Throws an exception if the specified value does not match the required regex pattern.

Поля

CategoryMaxLength Maximum length of category name.
CategoryPattern Regular expression pattern for validating settings unit category:
- Minimum length: 1 character,
- Each segment must start with a letter or digit,
- Each segment can contain letters, digits, underscores, and hyphens,
- Must consist of alphanumeric segments separated by '/'.
CategoryRegex Compiled regular expression for validating settings unit categories. Uses CategoryPattern with culture-invariant and compiled options.
NameMaxLength Maximum length of the settings unit name.
NamePattern Regular expression pattern for validating settings unit name:
- Minimum length: 1 character,
- Must start with a letter or digit,
- Can contain letters, digits, underscores, and hyphens.
NameRegex Compiled regular expression for validating settings unit names. Uses NamePattern with culture-invariant and compiled options.
TracingPrefix The prefix for the names of tracing operations related to settings units.
TracingSourceName The name of the data source for tracing settings units.

См. также