Esempio n. 1
0
        private static async Task <Response <IEnumerable <DetectedLanguage> > > CreateDetectLanguageResponseSimpleAsync(Response response, CancellationToken cancellation)
        {
            IEnumerable <DetectedLanguage> result = await TextAnalyticsServiceSerializer.DeserializeDetectedLanguageCollectionAsync(response.ContentStream, cancellation).ConfigureAwait(false);

            return(Response.FromValue(result, response));
        }