private static async Task <Response <AnalyzeSentimentResultCollection> > CreateAnalyzeSentimentResponseAsync(Response response, IDictionary <string, int> idToIndexMap, CancellationToken cancellation)
        {
            AnalyzeSentimentResultCollection result = await TextAnalyticsServiceSerializer.DeserializeAnalyzeSentimentResponseAsync(response.ContentStream, idToIndexMap, cancellation).ConfigureAwait(false);

            return(Response.FromValue(result, response));
        }
コード例 #2
0
 /// <summary>
 /// Intended for mocking purposes only.
 /// </summary>
 internal AnalyzeSentimentActionResult(
     AnalyzeSentimentResultCollection result,
     DateTimeOffset completedOn) : base(completedOn)
 {
     _documentsResults = result;
 }
 internal AnalyzeSentimentActionResult(AnalyzeSentimentResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
 {
     Result = result;
 }
 public AnalyzeSentimentResultCollectionDebugView(AnalyzeSentimentResultCollection collection)
 {
     BaseCollection = collection;
 }