public async Task <IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = new CancellationToken())
        {
            var session = await _mongoClient.StartSessionAsync(cancellationToken : cancellationToken).ConfigureAwait(false);

            CurrentTransaction = new MongoDbContextTransaction(session);
            return(CurrentTransaction);
        }
 public IDbContextTransaction BeginTransaction()
 {
     CurrentTransaction = new MongoDbContextTransaction(_mongoClient.StartSession());
     return(CurrentTransaction);
 }