SettingsUnitPluginBasePrepareForRemoveAsync - метод

A lifecycle hook invoked before a settings unit record is removed from persistent storage.

Definition

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

Параметры

record  SettingsUnitRecord
The settings unit record being removed.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTask
Provides an awaitable result of an asynchronous operation.

Реализации

ISettingsUnitPluginPrepareForRemoveAsync(SettingsUnitRecord, CancellationToken)

Заметки

Use this method to perform cleanup of dependent resources or to validate that the removal operation is permissible.

См. также