ISettingsUnitServiceGetRecordsAsync - метод

Retrieves a collection of settings unit record, optionally filtered by category, available for the current session.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
Task<List<SettingsUnitRecord>?> GetRecordsAsync(
	string? category,
	IValidationResultBuilder validationResult,
	CancellationToken cancellationToken = default
)

Параметры

category  String
Path to the category where the settings unit is located. The value must satisfy the CategoryPattern pattern.
The "/" symbol is used to separate categories:
  • Categorycategory
  • Subcategorycategory/subcategory
validationResult  IValidationResultBuilder
Объект, выполняющий построение результата валидации.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskListSettingsUnitRecord
A collection of SettingsUnitRecord objects or if any validation errors.

Заметки

- This method is intended for client applications that need to retrieve multiple settings records by category.
- Applies normalization to enrich data with user-friendly values for all returned records.
- Each returned record includes data processed by the PrepareForClientAsync(SettingsUnitRecord, CancellationToken) prepared for client-side consumption.

См. также