public Task AggregateToCollectionAsync <TResult>( PipelineDefinition <T, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default ) { return(collection.AggregateToCollectionAsync(pipeline, options, cancellationToken)); }
public void AggregateToCollection <TResult>( IClientSessionHandle session, PipelineDefinition <NoPipelineInput, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default) { _database.AggregateToCollection(session, pipeline, options, cancellationToken); }
public Task <IAsyncCursor <TResult> > AggregateAsync <TResult>( IClientSessionHandle session, PipelineDefinition <NoPipelineInput, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default) { return(_database.AggregateAsync(session, pipeline, options, cancellationToken)); }
public void AggregateToCollection <TResult>( PipelineDefinition <T, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default ) { collection.AggregateToCollection(pipeline, options, cancellationToken); }
public IAsyncCursor <TResult> Aggregate <TResult>( PipelineDefinition <T, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default ) { return(collection.Aggregate(pipeline, options, cancellationToken)); }
public IAsyncCursor <TResult> Aggregate <TResult>( IClientSessionHandle session, PipelineDefinition <T, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default) { return(_collection.Aggregate(session, pipeline, options, cancellationToken)); }
public IAsyncCursor <TResult> Aggregate <TResult>( PipelineDefinition <NoPipelineInput, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default) { if (TryGetSession(out IClientSessionHandle? session)) { return(Aggregate(session, pipeline, options, cancellationToken)); } return(_database.Aggregate(pipeline, options, cancellationToken)); }
public Task AggregateToCollectionAsync <TResult>( PipelineDefinition <T, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default) { if (TryGetSession(out IClientSessionHandle? session)) { return(AggregateToCollectionAsync(session, pipeline, options, cancellationToken)); } return(_collection.AggregateToCollectionAsync(pipeline, options, cancellationToken)); }
public void AggregateToCollection <TResult>( PipelineDefinition <NoPipelineInput, TResult> pipeline, AggregateOptions?options = null, CancellationToken cancellationToken = default) { if (TryGetSession(out IClientSessionHandle? session)) { _database.AggregateToCollection(session, pipeline, options, cancellationToken); return; } _database.AggregateToCollection(pipeline, options, cancellationToken); }