Method OutAsync
OutAsync(IMongoCollection<TResult>, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
public virtual Task<IAsyncCursor<TResult>> OutAsync(IMongoCollection<TResult> outputCollection, CancellationToken cancellationToken)
Parameters
outputCollection
IMongoCollection <TResult>The output collection.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <TResult>> A Task whose result is a cursor.
OutAsync(string, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
public abstract Task<IAsyncCursor<TResult>> OutAsync(string collectionName, CancellationToken cancellationToken)
Parameters
collectionName
stringName of the collection.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <TResult>> A Task whose result is a cursor.
OutAsync(IMongoCollection<TResult>, TimeSeriesOptions, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
public virtual Task<IAsyncCursor<TResult>> OutAsync(IMongoCollection<TResult> outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken)
Parameters
outputCollection
IMongoCollection <TResult>The output collection.
timeSeriesOptions
TimeSeries Options The time series options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <TResult>> A Task whose result is a cursor.
OutAsync(string, TimeSeriesOptions, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
public abstract Task<IAsyncCursor<TResult>> OutAsync(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken)
Parameters
collectionName
stringName of the collection.
timeSeriesOptions
TimeSeries Options The time series options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <TResult>> A Task whose result is a cursor.