Beispiel #1
0
 void RegisterForTransactionNotification(Transaction transaction)
 {
     if (Transaction.Current != null)
     {
         ReceiveContextEnlistmentNotification notification = new ReceiveContextEnlistmentNotification(this);
         transaction.EnlistVolatile(notification, EnlistmentOptions.None);
         Interlocked.Increment(ref this.ambientTransactionCount);
     }
 }
 void RegisterForTransactionNotification(Transaction transaction)
 {
     if (Transaction.Current != null)
     {
         ReceiveContextEnlistmentNotification notification = new ReceiveContextEnlistmentNotification(this);
         transaction.EnlistVolatile(notification, EnlistmentOptions.None);
         Interlocked.Increment(ref this.ambientTransactionCount);
     }
 }