ISettingsUnitPluginMergePartialDataAsync - метод

A lifecycle hook invoked before persisting partially updated data, responsible for merging the provided partial data with the existing Data.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
ValueTask MergePartialDataAsync(
	SettingsUnitRecord record,
	Dictionary<string, Object?> data,
	CancellationToken cancellationToken = default
)

Параметры

record  SettingsUnitRecord
The current settings unit record containing the complete data set, if available. The provided record object can be modified directly.
data  DictionaryString, Object
The partial data to merge into the existing data set.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTask
Provides an awaitable result of an asynchronous operation.

Заметки

If merging is performed, the resulting merged data is expected to be applied directly to record.

См. также