Ejemplo n.º 1
0
 public ScrollRequest(ScrollId scrollId, TimeUnitExpression scrollTimeout) : this(scrollId)
 {
     this.Scroll = scrollTimeout;
 }
 /// <inheritdoc/>
 public Task <ISearchResponse <T> > ScrollAsync <T>(TimeUnitExpression scrollTime, ScrollId scrollId, Func <ScrollDescriptor <T>, IScrollRequest> selector = null) where T : class =>
 this.ScrollAsync <T>(selector.InvokeOrDefault(new ScrollDescriptor <T>().Scroll(scrollTime).ScrollId(scrollId)));
Ejemplo n.º 3
0
 /// <inheritdoc/>
 public ISearchResponse <T> Scroll <T>(Time scrollTime, ScrollId scrollId, Func <ScrollDescriptor <T>, IScrollRequest> selector = null) where T : class =>
 this.Scroll <T>(selector.InvokeOrDefault(new ScrollDescriptor <T>().Scroll(scrollTime).ScrollId(scrollId)));