Click or drag to resize
IAsyncCursorSourceExtensions Class
Represents extension methods for IAsyncCursorSource.
Inheritance Hierarchy
System.Object
  MongoDB.Driver.IAsyncCursorSourceExtensions

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax
public static class IAsyncCursorSourceExtensions

The IAsyncCursorSourceExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Action<TDocument>, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Action<TDocument, Int32>, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Func<TDocument, Task>, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Func<TDocument, Int32, Task>, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberToListAsync<TDocument>
Returns a list containing all the documents returned by the cursor returned by a cursor source.
Top
See Also