Here is what I have done, and it works.  I would appreciate feedback on
whether this is a good approach.

I wrote a test windows application (lets call it App1) that points to a
queue and then adds a handler for the ReceiveCompleted event (all in the
Form_Load event).  The handler simply has a message box telling me a
message entered the queue I am pointing to (for testing).

Then, I call the BeginReceive method on the queue I am pointing to.

I wrote a 2nd windows application (lets call it App2) that simply sends
messages to the above queue.  With both applications running, I get the
above described message box (from App1) everytime App2 sends a message to
the queue.  This is simply for testing.  In the real world, App2 would
retrieve and process the message (no message boxes!)

This seems simple and straight forward.  Am I missing something here?

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to