Method ToCollectionAsync
ToCollectionAsync(CancellationToken)
Executes an aggregation pipeline that writes the results to a collection.
public virtual Task ToCollectionAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.