public WrappedTransaction(EventStoreTransaction transaction)
 {
     _transaction = transaction;
 }
        private static async Task <IWrappedTransaction> CreateTransaction(IEventStoreConnection connection, string identifier, long expectedVersion)
        {
            EventStoreTransaction transaction = await connection.StartTransactionAsync(identifier, expectedVersion).ConfigureAwait(false);

            return(new WrappedTransaction(transaction));
        }