ISettingsUnitServiceGetRecordAsync - метод

Retrieves the settings unit record.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
C#
Task<SettingsUnitRecord?> GetRecordAsync(
	SettingsUnitKey key,
	IValidationResultBuilder validationResult,
	bool normalizeRecordMetadata = false,
	SettingsUnitGetRecordDataMode getDataMode = SettingsUnitGetRecordDataMode.Cache,
	CancellationToken cancellationToken = default
)

Параметры

key  SettingsUnitKey
Key for identifying a settings unit or fragment.
validationResult  IValidationResultBuilder
Объект, выполняющий построение результата валидации.
normalizeRecordMetadata  Boolean  (Optional)
If , applies normalization and record metadata enrichment. It can be disabled for performance optimization when user-friendly values are not required.
getDataMode  SettingsUnitGetRecordDataMode  (Optional)
Modes for retrieving settings unit data via GetRecordAsync(SettingsUnitKey, IValidationResultBuilder, Boolean, SettingsUnitGetRecordDataMode, CancellationToken)
If mode is not Cache, the check for initialization of settings is not performed.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskSettingsUnitRecord
A SettingsUnitRecord object or if any validation errors.

См. также