Refactor STA attributes logic outside of adapter#5856
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev/v4 #5856 +/- ##
==========================================
- Coverage 63.21% 63.18% -0.04%
==========================================
Files 584 584
Lines 31808 31808
==========================================
- Hits 20107 20097 -10
- Misses 11701 11711 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Evangelink
left a comment
There was a problem hiding this comment.
Do you want to also simplify logic from
?
src/TestFramework/TestFramework/Attributes/TestMethod/STATestMethodAttribute.cs
Outdated
Show resolved
Hide resolved
Hmm, I'm not sure exactly what to simplify there as this is more of a global setting unrelated to the attributes. |
True, if we don't care much about perf, we could force |
The logic in the attribute checks if we are already in STA thread, and in that case we don't create a thread and we run directly. |
|
@Evangelink I changed a bit the signature of the wrapping constructor of |
Closes #5693
Related to #1285