Exemplo n.º 1
0
 private async Task <IListResult <TEntity> > DeserializeItemResultsAsync <TEntity>(HttpResponseMessage result)
     where TEntity : TeamsObject
 {
     using (var streamReader = new StreamReader(await result.Content.ReadAsStreamAsync()))
     {
         using (var jsonTextReader = new JsonTextReader(streamReader))
         {
             var itemsResult = _serializer.DeserializeList <TEntity>(jsonTextReader);
             SetNextPage(result, itemsResult);
             return(itemsResult);
         }
     }
 }