public static async Task <DocumentDatabaseTransaction> BeginAsync(IDocumentDatabaseProvider provider, DocumentDatabaseMapper mapper, CancellationToken cancellationToken) { IDocumentDatabaseProviderTransaction transaction = await provider.BeginTransactionAsync(cancellationToken); return(new DocumentDatabaseTransaction(transaction, mapper)); }
private DocumentDatabaseTransaction(IDocumentDatabaseProviderTransaction transaction, DocumentDatabaseMapper mapper) { _mapper = mapper; _transaction = transaction; }