Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress transactions in SqlDatabaseTraceListener #12

Open
sgryphon opened this issue Jul 18, 2017 · 0 comments
Open

Suppress transactions in SqlDatabaseTraceListener #12

sgryphon opened this issue Jul 18, 2017 · 0 comments
Labels

Comments

@sgryphon
Copy link
Owner

sgryphon commented Jul 18, 2017

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?

@sgryphon sgryphon added the bug label Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant