Re: Problems with ThreadContext and TransactionScope

2015-08-27 Thread Ílson Bolzan
, 2015 at 8:43 PM, Ron Grabowski wrote: > Do you get the same error when you use LogicalThreadContext? > > -- > *From:* Ílson Bolzan > *To:* Log4NET User > *Sent:* Wednesday, August 26, 2015 1:18 PM > *Subject:* Problems with ThreadContext and Tra

Re: Problems with ThreadContext and TransactionScope

2015-08-26 Thread Ron Grabowski
Do you get the same error when you use LogicalThreadContext? From: Ílson Bolzan To: Log4NET User Sent: Wednesday, August 26, 2015 1:18 PM Subject: Problems with ThreadContext and TransactionScope Has anyone tried to stack contexts and use Transaction scope at the same time? I&#

Problems with ThreadContext and TransactionScope

2015-08-26 Thread Ílson Bolzan
Has anyone tried to stack contexts and use Transaction scope at the same time? I'm trying something like this: using (log4net.ThreadContext.Stacks["contextLog"].Push("Saving Data")){ log.Info("Starting transaction"); using (var ts = new TransactionScope(TransactionScopeOption.Requ