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