| TopicMatcherMatchAsync Method |
Matches the topics to their IDs from content layout and creates a mapping from topic name to topic.
Namespace: Amdl.Maml.ConverterAssembly: Amdl.Maml.Converter (in Amdl.Maml.Converter.dll) Version: 1.0.5821.17059
Syntax public static Task<Dictionary<string, TopicData>> MatchAsync(
IEnumerable<TopicData> topics,
Paths paths,
IDictionary<string, Guid> title2id,
CancellationToken cancellationToken = null,
IProgress<Indicator> progress = null
)
Public Shared Function MatchAsync (
topics As IEnumerable(Of TopicData),
paths As Paths,
title2id As IDictionary(Of String, Guid),
Optional cancellationToken As CancellationToken = Nothing,
Optional progress As IProgress(Of Indicator) = Nothing
) As Task(Of Dictionary(Of String, TopicData))
public:
static Task<Dictionary<String^, TopicData^>^>^ MatchAsync(
IEnumerable<TopicData^>^ topics,
Paths paths,
IDictionary<String^, Guid>^ title2id,
CancellationToken cancellationToken = nullptr,
IProgress<Indicator>^ progress = nullptr
)
static member MatchAsync :
topics : IEnumerable<TopicData> *
paths : Paths *
title2id : IDictionary<string, Guid> *
?cancellationToken : CancellationToken *
?progress : IProgress<Indicator>
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
let _progress = defaultArg progress null
*)
-> Task<Dictionary<string, TopicData>>
Parameters
- topics
- Type: System.Collections.GenericIEnumerableTopicData
The topics. - paths
- Type: Amdl.Maml.ConverterPaths
Paths. - title2id
- Type: System.Collections.GenericIDictionaryString, Guid
Gets the topic ID from the topic title. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
Cancellation token. - progress (Optional)
- Type: SystemIProgressIndicator
Progress indicator.
Return Value
Type:
TaskDictionaryString,
TopicDataMatched topic mapping.
See Also