Does MediatR solve the WinForms cross-thread control update problem? #935
Unanswered
NameOfTheDragon
asked this question in
Q&A
Replies: 1 comment
-
Posted to Stack Overflow as no response here. See https://stackoverflow.com/questions/76811291/does-mediatr-solve-the-winforms-cross-thread-control-update-problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I've inherited a legacy WinForms app that is full of horrible threading issues and cross-thread form updates. The developer has tried to use Control.BeginInvoke to marshal the calls but has not been very successful with it. I sympathize because I made a lot of the same mistakes 20+ years ago when C# first appeared. I'm wondering if I replace these cross-thread control updates with MediatR notifications, would this marshal the handlers to the UI's STA thread, or will I still have to be concerned with thread marshaling?
Beta Was this translation helpful? Give feedback.
All reactions