private static async Task <Response <ExtractKeyPhrasesResultCollection> > CreateKeyPhraseResponseAsync(Response response, IDictionary <string, int> idToIndexMap, CancellationToken cancellation) { ExtractKeyPhrasesResultCollection result = await TextAnalyticsServiceSerializer.DeserializeKeyPhraseResponseAsync(response.ContentStream, idToIndexMap, cancellation).ConfigureAwait(false); return(Response.FromValue(result, response)); }
public ExtractKeyPhrasesResultCollectionDebugView(ExtractKeyPhrasesResultCollection collection) { BaseCollection = collection; }
/// <summary> /// Successful action. /// </summary> internal ExtractKeyPhrasesActionResult(ExtractKeyPhrasesResultCollection result, DateTimeOffset completedOn) : base(completedOn) { _documentsResults = result; }
internal ExtractKeyPhrasesActionResult(ExtractKeyPhrasesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error) { Result = result; }