Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

MessageQueue BeginReceive/EndReceive thread safety

$
0
0

Documentation for .net 3.5 states that

Only the following methods are thread safe: BeginPeek,BeginReceive,EndPeek(IAsyncResult),EndReceive(IAsyncResult),GetAllMessages,Peek, andReceive.

Documentation for .net 4/4.5 states that

Only the GetAllMessages method is thread safe.

Is .net 4/4.5 documentation correct and asynchronous methods are really not thread safe?

How to use asynchronous BeginReceive/EndReceive methods when I need make 100 calls of BeginReceive forsingle MessageQueue if methods are not thread safe?


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>