AiFileSettingsUnitPluginAfterGetAsync - метод

A lifecycle hook invoked after the settings unit record is loaded from storage or created via TryGetDefaultDataAsync(SettingsUnitKey, CancellationToken), but before it is returned.

Definition

Пространство имён: Tessa.Extensions.Platform.Server.SettingsUnits.AiFiles
Сборка: Tessa (в Tessa.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
C#
public override ValueTask AfterGetAsync(
	SettingsUnitRecord record,
	CancellationToken cancellationToken = default
)

Параметры

record  SettingsUnitRecord
The settings unit record to be returned.
The provided record object can be modified directly.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTask
Provides an awaitable result of an asynchronous operation.

Реализации

ISettingsUnitPluginAfterGetAsync(SettingsUnitRecord, CancellationToken)

Заметки

Use this method to enrich the data with additional information obtained from other services or data sources before the record is returned.

См. также