Skip to content

Fix Event-Exception: "Microsoft.Data.SqlClient.WriteCommandBefore"#89

Open
AndrewP-GH wants to merge 3 commits into
opentracing-contrib:masterfrom
AndrewP-GH:master
Open

Fix Event-Exception: "Microsoft.Data.SqlClient.WriteCommandBefore"#89
AndrewP-GH wants to merge 3 commits into
opentracing-contrib:masterfrom
AndrewP-GH:master

Conversation

@AndrewP-GH

@AndrewP-GH AndrewP-GH commented Feb 9, 2021

Copy link
Copy Markdown

Fix #86:
I found that the reason for the exception was the race condition in PropertyFetcher when we store fetcher in the static field.

What do you think of this solution?

P.S. I've also replaced Activator.CreateInstance with Expression.New for better performance

@AndrewP-GH AndrewP-GH changed the title fix #86 Fix Event-Exception: "Microsoft.Data.SqlClient.WriteCommandBefore" Feb 9, 2021
@AndrewP-GH

Copy link
Copy Markdown
Author

@cwe1ss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event-Exception: "Microsoft.Data.SqlClient.WriteCommandBefore"

1 participant