SettingsUnitPluginBaseOnRemovedAsync - метод

A lifecycle hook invoked after a settings unit has been successfully removed from persistent storage.

Definition

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

Параметры

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

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

ValueTask
Provides an awaitable result of an asynchronous operation.

Реализации

ISettingsUnitPluginOnRemovedAsync(SettingsUnitRecord, CancellationToken)

Заметки

Suitable for performing final cleanup operations or side effects that must occur only after the removal is guaranteed to be deleted.

См. также