Processing incoming networking messages
Say I have a processing loop which processes incoming network messages asynchronously with ConfigureAwait(false). Should I synchronize back to the SynchronizationContext (if there is one) to invoke the callback delegates that are subscribed to the message type?
6 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Say it's for a general library that I'd want to use in any type of application. Should I just provide the option of synchronizing back to SynchronizationContext or not? That way it covers both cases
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Gotcha ty for responding. I'm attempting to build a performant library for named pipes because I need IPC between a Desktop application and a UWP app, which also limits me to .NET Standard 2.0
I'd love to not do UWP, but the xbox game bar apps have to be UWP at this point in time.