AiToolsSettingsUnitPluginGetActualFragmentsAsync - метод
Resolves the actual fragment names by filtering or transforming the provided fragment names based on current context and availability.
Пространство имён: Tessa.Extensions.Platform.Server.SettingsUnits.AiToolsСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public override ValueTask<IReadOnlyCollection<string>> GetActualFragmentsAsync(
Guid unitID,
IEnumerable<string> fragmentNames,
CancellationToken cancellationToken = default
)
Public Overrides Function GetActualFragmentsAsync (
unitID As Guid,
fragmentNames As IEnumerable(Of String),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IReadOnlyCollection(Of String))
public:
virtual ValueTask<IReadOnlyCollection<String^>^> GetActualFragmentsAsync(
Guid unitID,
IEnumerable<String^>^ fragmentNames,
CancellationToken cancellationToken = CancellationToken()
) override
abstract GetActualFragmentsAsync :
unitID : Guid *
fragmentNames : IEnumerable<string> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IReadOnlyCollection<string>>
override GetActualFragmentsAsync :
unitID : Guid *
fragmentNames : IEnumerable<string> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IReadOnlyCollection<string>>
- unitID Guid
- The unique identifier of the settings unit.
- fragmentNames IEnumerableString
- The collection of fragment names within the settings unit to be processed.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskIReadOnlyCollectionStringA collection of actual fragment names that are valid and available.
ISettingsUnitPluginGetActualFragmentsAsync(Guid, IEnumerableString, CancellationToken)
Use this method to validate fragment names, apply context-specific filtering,
or resolve dynamic fragments that may change based on runtime conditions.