Beispiel #1
0
 public DurableResourceManager(NpgsqlResourceManager rm, INpgsqlTransactionCallbacks callbacks,
                               CommittableTransaction tx)
 {
     _rm        = rm;
     _tx        = tx;
     _callbacks = callbacks;
 }
 public byte[] Promote(INpgsqlTransactionCallbacks callbacks)
 {
     CommittableTransaction tx = new CommittableTransaction();
     DurableResourceManager rm = new DurableResourceManager(this, callbacks, tx);
     byte[] token = TransactionInterop.GetTransmitterPropagationToken(tx);
     _transactions.Add(rm.TxName, tx);
     rm.Enlist(tx);
     return token;
 }
Beispiel #3
0
        public byte[] Promote(INpgsqlTransactionCallbacks callbacks)
        {
            CommittableTransaction tx = new CommittableTransaction();
            DurableResourceManager rm = new DurableResourceManager(this, callbacks, tx);

            byte[] token = TransactionInterop.GetTransmitterPropagationToken(tx);
            _transactions.Add(rm.TxName, tx);
            rm.Enlist(tx);
            return(token);
        }
 public DurableResourceManager(NpgsqlResourceManager rm, INpgsqlTransactionCallbacks callbacks,
                               CommittableTransaction tx)
 {
     _callbacks = callbacks;
 }
 public DurableResourceManager(NpgsqlResourceManager rm, INpgsqlTransactionCallbacks callbacks)
     : this(rm, callbacks, null)
 {
 }
 public void Enlist(INpgsqlTransactionCallbacks callbacks, byte[] txToken)
 {
     DurableResourceManager rm = new DurableResourceManager(this, callbacks);
     rm.Enlist(txToken);
 }
Beispiel #7
0
 public DurableResourceManager(NpgsqlResourceManager rm, INpgsqlTransactionCallbacks callbacks)
     : this(rm, callbacks, null)
 {
 }
Beispiel #8
0
        public void Enlist(INpgsqlTransactionCallbacks callbacks, byte[] txToken)
        {
            DurableResourceManager rm = new DurableResourceManager(this, callbacks);

            rm.Enlist(txToken);
        }