Class IAsyncCursorExtensions
Represents extension methods for IAsyncCursor.
public static class IAsyncCursorExtensions
- Inheritance
-
IAsyncCursorExtensions
- Inherited Members
Methods
- AnyAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Determines whether the cursor contains any documents.
- Any<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Determines whether the cursor contains any documents.
- FirstAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the first document of a cursor.
- FirstOrDefaultAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the first document of the cursor, or a default value if the cursor contains no documents.
- FirstOrDefault<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the first document of a cursor, or a default value if the cursor contains no documents.
- First<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the first document of a cursor.
- ForEachAsync<TDocument>(IAsyncCursor<TDocument>, Action<TDocument, int>, CancellationToken)
Calls a delegate for each document returned by the cursor.
- ForEachAsync<TDocument>(IAsyncCursor<TDocument>, Action<TDocument>, CancellationToken)
Calls a delegate for each document returned by the cursor.
- ForEachAsync<TDocument>(IAsyncCursor<TDocument>, Func<TDocument, int, Task>, CancellationToken)
Calls a delegate for each document returned by the cursor.
- ForEachAsync<TDocument>(IAsyncCursor<TDocument>, Func<TDocument, Task>, CancellationToken)
Calls a delegate for each document returned by the cursor.
- SingleAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
- SingleOrDefaultAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the only document of a cursor, or a default value if the cursor contains no documents. This method throws an exception if the cursor contains more than one document.
- SingleOrDefault<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the only document of a cursor, or a default value if the cursor contains no documents. This method throws an exception if the cursor contains more than one document.
- Single<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
- ToEnumerable<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Wraps a cursor in an IEnumerable that can be enumerated one time.
- ToListAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns a list containing all the documents returned by a cursor.
- ToList<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Returns a list containing all the documents returned by a cursor.