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

            return(Response.FromValue(result, response));
        }
Esempio n. 2
0
 internal RecognizeLinkedEntitiesActionResult(RecognizeLinkedEntitiesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error)
     : base(completedOn, error)
 {
     _documentsResults = result;
 }
 /// <summary>
 /// Successful action.
 /// </summary>
 internal RecognizeLinkedEntitiesActionResult(RecognizeLinkedEntitiesResultCollection result, DateTimeOffset completedOn)
     : base(completedOn)
 {
     _documentsResults = result;
 }
 public RecognizeLinkedEntitiesResultCollectionDebugView(RecognizeLinkedEntitiesResultCollection collection)
 {
     BaseCollection = collection;
 }