コード例 #1
0
        public static async Task <DocumentDatabaseTransaction> BeginAsync(IDocumentDatabaseProvider provider,
                                                                          DocumentDatabaseMapper mapper, CancellationToken cancellationToken)
        {
            IDocumentDatabaseProviderTransaction transaction = await provider.BeginTransactionAsync(cancellationToken);

            return(new DocumentDatabaseTransaction(transaction, mapper));
        }
コード例 #2
0
 private DocumentDatabaseTransaction(IDocumentDatabaseProviderTransaction transaction, DocumentDatabaseMapper mapper)
 {
     _mapper      = mapper;
     _transaction = transaction;
 }