In one application, I'm starting up a thread as follows:
System.Threading.ThreadStart ts = new System.Threading.ThreadStart(ReceiveInformation);
this._receiveThread = new System.Threading.Thread(ts);
this._receiveThread.Name = "MSMQ Receive Thread";
this._receiveThread.Start();
In another application, I'd like to access that thread, I was thinking something of:
System.Process other_Process = System.Process.GetByname("Name of the other process");
System.Threading.Thread = System.Threading.GetByName(other_Process, "MSMQ Receive Thread");
I am aware that my source code is complete bogus (I can hear you laughing about my naïve attempt :-) ), can anybody tell me what's the right way to do this?
Thanks in advance