Method ToCollection
ToCollection(CancellationToken)
Executes an aggregation pipeline that writes the results to a collection.
void ToCollection(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.