Beispiel #1
0
        protected override ITransaction DoFindOne(TransactionXid xid)
        {
            var id = xid.ToString();

            // be careful the cache data.
            var entity = _dbSet.FirstOrDefault(x => x.TransactionId == id);

            return(ToTransaction(entity));
        }
 private ITransaction FindFromCache(TransactionXid transactionXid)
 {
     Check.NotNull(transactionXid, nameof(transactionXid));
     return((ITransaction)Cache.Get(transactionXid.ToString()));
 }