[threadstatic] private static Transaction tx;

private bool MessageArrived(Information info)
{
   if(tx == null)
   {
         tx = new Transaction(suppress);
   }
   return false;
}

private void MessageProcessingCompleted(Information info, Exception ex)
{
   using(tx)
   {
      if(ex == null)
      {
          tx.Complete();
      }
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rhino-tools-dev/-/LINviN3wZusJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to