Skip to content

Best Practices

Kenneth Carter edited this page Jul 14, 2020 · 4 revisions
  • ThreadStaticAttribute, is not a magic bullet that will make your code thread safe. But, it is a good place to start when interference from another thread can have catastrophic results. However, there are some conditions while running asynchronous code where it is better to track the multiple threads and there instances. SharedDbConnectionScope, is an example of this.
Clone this wiki locally