Interface IClientSession
The interface for a client session.
public interface IClientSession : IDisposable
  - Inherited Members
 
Properties
- Client
 Gets the client.
- ClusterTime
 Gets the cluster time.
- IsImplicit
 Gets a value indicating whether this session is an implicit session.
- IsInTransaction
 Gets a value indicating whether this instance is in a transaction.
- OperationTime
 Gets the operation time.
- Options
 Gets the options.
- ServerSession
 Gets the server session.
- WrappedCoreSession
 Gets the wrapped core session (intended for internal use only).
Methods
- AbortTransaction(CancellationToken)
 Aborts the transaction.
- AbortTransactionAsync(CancellationToken)
 Aborts the transaction.
- AdvanceClusterTime(BsonDocument)
 Advances the cluster time.
- AdvanceOperationTime(BsonTimestamp)
 Advances the operation time.
- CommitTransaction(CancellationToken)
 Commits the transaction.
- CommitTransactionAsync(CancellationToken)
 Commits the transaction.
- StartTransaction(TransactionOptions)
 Starts a transaction.
- WithTransactionAsync<TResult>(Func<IClientSessionHandle, CancellationToken, Task<TResult>>, TransactionOptions, CancellationToken)
 Executes a callback within a transaction, with retries if needed.
- WithTransaction<TResult>(Func<IClientSessionHandle, CancellationToken, TResult>, TransactionOptions, CancellationToken)
 Executes a callback within a transaction, with retries if needed.