Beispiel #1
0
 /// <summary>
 /// Gets an async cursor of the custom model log documents based on filter and the find options.
 /// </summary>
 /// <typeparam name="TDocument">your custom document model.</typeparam>
 /// <param name="filter">filter expression.</param>
 /// <param name="options">options for finding documents.</param>
 /// <returns>An asynchronous cursor of custom model log documents.</returns>
 public async Task <IAsyncCursor <TDocument> > GetCustomLogsAsync <TDocument>(Expression <Func <TDocument, bool> > filter = null, FindOptions <TDocument, TDocument> options = null) =>
 await _mongoDBContext.GetAsync(filter, options);