ISettingsUnitPluginAfterStoreFinallyAsync - метод

A lifecycle hook invoked after processing of saving settings unit record is complete.

Definition

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

Параметры

context  SettingsUnitPluginContext
Context of the persisted settings unit record.
validationResult  IValidationResultBuilder
Объект, выполняющий построение результата валидации.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTask
Provides an awaitable result of an asynchronous operation.

Заметки

Suitable for triggering side effects such as cache invalidation, event publishing, or notification dispatching, or invoking external objects that require the use of the new settings. The method is called upon the successful or unsuccessful completion of saving the settings.

См. также