ISettingsUnitPluginPrepareForPersistentAsync - метод

A lifecycle hook invoked before the settings data is persisted to storage.

Definition

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

Параметры

record  SettingsUnitRecord
The settings unit record to be persisted. The provided record object can be modified directly.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTask
Provides an awaitable result of an asynchronous operation.

Заметки

Use this method to normalize the data, remove transient properties, or perform final business-logic transformations prior to persistence.

См. также