private bool _disposedValue = false; // To detect redundant calls /// <summary> /// Initializes a new instance of the <see cref="CollectionAsyncEnumerator{T}"/> class. /// </summary> /// <param name="dataStore">The <see cref="IDataStore">DataStore</see> to use.</param> /// <param name="initialRequest">The initial HTTP request options.</param> /// <param name="requestContext">The request context.</param> public CollectionAsyncEnumerator( IDataStore dataStore, HttpRequest initialRequest, RequestContext requestContext) { _pagedEnumerator = new PagedCollectionEnumerator <T>(dataStore, initialRequest, requestContext); }
private bool _disposedValue = false; // To detect redundant calls /// <summary> /// Initializes a new instance of the <see cref="CollectionAsyncEnumerator{T}"/> class. /// </summary> /// <param name="dataStore">The <see cref="IDataStore">DataStore</see> to use.</param> /// <param name="initialRequest">The initial HTTP request options.</param> /// <param name="requestContext">The request context.</param> /// <param name="cancellationToken">The cancellation token.</param> public CollectionAsyncEnumerator( IDataStore dataStore, HttpRequest initialRequest, RequestContext requestContext, CancellationToken cancellationToken) { _pagedEnumerator = new PagedCollectionEnumerator <T>(dataStore, initialRequest, requestContext, cancellationToken); }