Interface IClientSession
The interface for a client session.
- Inherited Members
Properties
- Client
Gets the client.
- Cluster
Time Gets the cluster time.
- Is
Implicit Gets a value indicating whether this session is an implicit session.
- Is
InTransaction Gets a value indicating whether this instance is in a transaction.
- Operation
Time Gets the operation time.
- Options
Gets the options.
- Server
Session Gets the server session.
- Wrapped
Core Session Gets the wrapped core session (intended for internal use only).
Methods
- Abort
Transaction(Cancellation Token) Aborts the transaction.
- Abort
Transaction Async(Cancellation Token) Aborts the transaction.
- Advance
Cluster Time(Bson Document) Advances the cluster time.
- Advance
Operation Time(Bson Timestamp) Advances the operation time.
- Commit
Transaction(Cancellation Token) Commits the transaction.
- Commit
Transaction Async(Cancellation Token) Commits the transaction.
- Start
Transaction(Transaction Options) 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.