SettingsUnitPluginBaseBeforeGetAsync - метод

A lifecycle hook invoked before the settings unit record is loaded from storage.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
C#
public virtual ValueTask BeforeGetAsync(
	SettingsUnitKey key,
	CancellationToken cancellationToken = default
)

Параметры

key  SettingsUnitKey
Key for identifying a settings unit or fragment.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

ValueTask

Реализации

ISettingsUnitPluginBeforeGetAsync(SettingsUnitKey, CancellationToken)

Заметки

This method can be used to perform preliminary checks, initialize context-specific state, or enforce access rules prior to retrieving the settings data.

См. также