public IEnumerable <T> GetEnumerable()
 {
     if (this.results == null)
     {
         var exitStrategy = new ListExitStrategy <T>(this.shardedQuery);
         this.results = this.shardedQuery.session.Execute(this, exitStrategy);
     }
     return(this.results);
 }
 public async Task <IEnumerable <T> > GetEnumerableAsync(CancellationToken cancellationToken = new CancellationToken())
 {
     if (this.results == null)
     {
         var exitStrategy = new ListExitStrategy <T>(this.shardedQuery);
         this.results = await this.shardedQuery.session.ExecuteAsync(this, exitStrategy, cancellationToken).ConfigureAwait(false);
     }
     return(this.results);
 }