SettingsUnitPluginBaseTransformForUsageAsync - метод
A lifecycle hook invoked after a settings unit is loaded for use, typically from cache.
Intended for populating transient or context-specific data that must not be cached or stored.
Пространство имён: Tessa.SettingsUnitsСборка: Tessa (в Tessa.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
public virtual ValueTask<Dictionary<string?, Object>> TransformForUsageAsync(
SettingsUnitRecord record,
CancellationToken cancellationToken = default
)
Public Overridable Function TransformForUsageAsync (
record As SettingsUnitRecord,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of Dictionary(Of String, Object))
public:
virtual ValueTask<Dictionary<String^, Object^>^> TransformForUsageAsync(
SettingsUnitRecord^ record,
CancellationToken cancellationToken = CancellationToken()
)
abstract TransformForUsageAsync :
record : SettingsUnitRecord *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<Dictionary<string, Object>>
override TransformForUsageAsync :
record : SettingsUnitRecord *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<Dictionary<string, Object>>
- record SettingsUnitRecord
-
The settings unit record being prepared for use.
The provided record object must not be modified directly.
Return a modified copy of Data if changes are required.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskDictionaryString,
ObjectA modified data storage object if the data was enriched; otherwise,
.
ISettingsUnitPluginTransformForUsageAsync(SettingsUnitRecord, CancellationToken)
Use this method to populate dynamic or calculated properties (e.g. display names, aggregated values)
that are necessary for the client but are derived from the current context rather than stored.