ISettingsUnitPluginBeforeStoreAsync - метод
A lifecycle hook invoked before the settings unit record is persisted.
Пространство имён: Tessa.SettingsUnitsСборка: Tessa (в Tessa.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
ValueTask BeforeStoreAsync(
SettingsUnitPluginContext context,
CancellationToken cancellationToken = default
)
Function BeforeStoreAsync (
context As SettingsUnitPluginContext,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
ValueTask BeforeStoreAsync(
SettingsUnitPluginContext^ context,
CancellationToken cancellationToken = CancellationToken()
)
abstract BeforeStoreAsync :
context : SettingsUnitPluginContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- 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.
ValueTaskProvides 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.