コード例 #1
0
 public ExecuteInNonManagedTXLockCallback(JobStoreSupport js, IVoidTransactionCallback txCallback)
     : base(js)
 {
     this.txCallback = txCallback;
 }
コード例 #2
0
 /// <summary>
 /// Execute the given callback having optionally aquired the given lock.
 /// This uses the non-managed transaction connection.  This version is just a 
 /// handy wrapper around executeInNonManagedTXLock that doesn't require a return
 /// value.
 /// </summary>
 /// <param name="lockName">
 /// The name of the lock to aquire, for example 
 /// "TRIGGER_ACCESS".  If null, then no lock is aquired, but the
 /// lockCallback is still executed in a non-managed transaction. 
 /// </param>
 /// <seealso cref="ExecuteInNonManagedTXLock(string, ITransactionCallback)" />
 protected void ExecuteInNonManagedTXLock(string lockName, IVoidTransactionCallback txCallback)
 {
     ExecuteInNonManagedTXLock(lockName, new ExecuteInNonManagedTXLockCallback(this, txCallback));
 }