SettingsUnitPluginBeforeStoreAsync - метод
A lifecycle hook invoked before the settings unit record is persisted.
Пространство имён: Tessa.SettingsUnitsСборка: Tessa (в Tessa.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
public virtual ValueTask BeforeStoreAsync(
SettingsUnitPluginContext context,
CancellationToken cancellationToken = default
)
Public Overridable Function BeforeStoreAsync (
context As SettingsUnitPluginContext,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
virtual ValueTask BeforeStoreAsync(
SettingsUnitPluginContext^ context,
CancellationToken cancellationToken = CancellationToken()
)
abstract BeforeStoreAsync :
context : SettingsUnitPluginContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
override 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.
ISettingsUnitPluginBeforeStoreAsync(SettingsUnitPluginContext, CancellationToken)
Use this method to normalize the data, remove transient properties, or perform final business-logic transformations prior to persistence.