This project has moved. For the latest updates, please go here.

Suppress transactions in SqlDatabaseTraceListener


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?