MessageQueue BeginReceive/EndReceive thread safety RRS feed


  • Hello Alexey,

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

    Yes, the document is correct. Because since from .NET Framework 4.0, it is based on CLR 4.0 which changes a lot from 2.0 version.

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

    You could consider about adding a mutex when using these unsafe methods.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 6, 2014 3:47 AM