ISettingsUnitPluginBeforeStoreAsync - метод

A lifecycle hook invoked before the settings unit record is persisted.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
C#
ValueTask BeforeStoreAsync(
	SettingsUnitPluginContext context,
	CancellationToken cancellationToken = default
)

Параметры

context  SettingsUnitPluginContext
Context of the settings unit record being persisted. The provided record in context 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.

См. также