msmq - How do you wait to receive one of several MessageQueue's in .NET? -


i porting older c++ component c#. it's job sit idle, until message arrives on 1 of several queues, deal it.

in c++ used waitformultipleobjects, passing array of handles each of queues we're monitoring.

in .net, messagequeue class has .receive() method blocks until message arrives, not see obvious way block until message of several queues arrives.

ideally not want use asynchronous api. .net program using native libraries not thread safe.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -