AiFileSettingsUnitPluginUpgradeDataAsync - метод

Upgrades the structure of the settings data to be compatible with the current scheme version returned by GetSchemeVersion(SettingsUnitKey).

Definition

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

Параметры

record  SettingsUnitRecord
The settings unit record whose data may require an upgrade.
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, Object
A modified data storage object if an upgrade was performed; otherwise, .

Реализации

ISettingsUnitPluginUpgradeDataAsync(SettingsUnitRecord, CancellationToken)

Заметки

This method provides schema migration support and ensures backward compatibility by migrating older data schemas to the current one. It is invoked once when the settings record is receiving or importing if it schema version differs from the current version returned by GetSchemeVersion(SettingsUnitKey).

См. также