Ejemplo n.º 1
0
        public static async Task <IEnumerable <Index> > GetIndexes(IBodyReader reader)
        {
            var body = await reader.ReadAsync <IndexList>()
                       .ConfigureAwait(false);

            return(body.Items);
        }
Ejemplo n.º 2
0
        public static async Task <IEnumerable <IndexOperationResult> > GetIndexes(IBodyReader reader, CancellationToken cancellationToken)
        {
            var body = await reader.ReadAsync <IndexOperationList>(cancellationToken)
                       .ConfigureAwait(false);

            return(body.Items);
        }
Ejemplo n.º 3
0
 public static async Task<IEnumerable<IndexOperationResult>> GetIndexes(IBodyReader reader)
 {
     IndexOperationList body = await reader.ReadAsync<IndexOperationList>()
         .ConfigureAwait(false);
     return body.Items;
 }
Ejemplo n.º 4
0
 public static async Task<IEnumerable<IndexOperationResult>> GetIndexes(IBodyReader reader, CancellationToken cancellationToken)
 {
     var body = await reader.ReadAsync<IndexOperationList>(cancellationToken)
         .ConfigureAwait(false);
     return body.Items;
 }