SettingsUnitProviderGetUnitAsync - метод

Retrieves the settings unit. Returns a structured unit ready for internal system usage.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public Task<SettingsUnit?> GetUnitAsync(
	SettingsUnitKey key,
	bool normalize,
	IValidationResultBuilder validationResult,
	CancellationToken cancellationToken = default
)

Параметры

key  SettingsUnitKey
Key for identifying a settings unit or fragment.
normalize  Boolean
If , applies normalization and data enrichment.
validationResult  IValidationResultBuilder
Объект, выполняющий построение результата валидации.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskSettingsUnit
A SettingsUnit object or if any validation errors.

Реализации

ISettingsUnitProviderGetUnitAsync(SettingsUnitKey, Boolean, IValidationResultBuilder, CancellationToken)

Заметки

- This method is designed for internal system usage.
- Each returned record includes data processed by the PrepareForUsageAsync(SettingsUnitRecord, CancellationToken) which may optimize data for server-side operations or runtime processing.
- Normalization can be applied to enrich the data with user-friendly values, plugin-level transformations, and other runtime-calculated properties. It can be disabled for performance optimization when user-friendly values are not required.

См. также