> I'm worried that if the actual receive is done on a > ThreadPool thread, then > when we want to stop, the actual receive is still going on, which will > remove the message from the queue without our knowledge > (since we already > shut down), thus resulting in lost message. I think that > problem is probably > curable using a BeginPeek first approach, where the consequence of not > calling a subsequent EndPeek will not be too harmful.
Ah - makes sense. Then yes, BeginPeek does sound the like right tool for the job. -Mike Bear Canyon Consulting LLC http://www.bearcanyon.com http://www.pluralsight.com/blogs/mike =================================== This list is hosted by DevelopMentorŪ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com