This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Suppress transactions in SqlDatabaseTraceListener

description

There is a need for suppressing transactions in the SqlDatabaseTraceListener.

If you use Trace inside a transaction you don't want to put all your trace-lines inside a TransactionScopeOption.Suppress-scope in case the diagnostics framework has been configured for writing to another database server without proper DTC in place.

I guess it would be pretty simple to add a using (var scope = new TransactionScope(TransactionScopeOption.Suppress)) to the WriteToDatabase-method?

comments