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 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 void Enlist(INpgsqlTransactionCallbacks callbacks, byte[] txToken) { DurableResourceManager rm = new DurableResourceManager(this, callbacks); rm.Enlist(txToken); }