S
Scott
I have a service that starts 0->several processes to do work for the main
service. These processes are always the same xxx.exe that are generally
attached to a specific MSMQ that the process with monitor. The MSMQ queue is
passes to the process via a command line parameter.
What I need to be able to do is identify the queue that each of these
processes is monitoring from the Process information.
When the main service starts it does a Process.GetProcessByName for the
xxx.exe in an attempt to reconnect to any processes that may (still) be
running.
The problem is that I don't see any information in the Process object that
allows me to identify the queue (or anything else) that identifies this
process.
All I need is the original commandline options. But I don't see a way to get
that information either. The Arguments are in the startinfo member but are
usually not set. So is there some way to set and retrieve some type of
information to identify the process? Preferably something through the
ProcessStartInfo that can be retrieved directly through the process object.
OR is there away to snoop into the running process using reflection?
service. These processes are always the same xxx.exe that are generally
attached to a specific MSMQ that the process with monitor. The MSMQ queue is
passes to the process via a command line parameter.
What I need to be able to do is identify the queue that each of these
processes is monitoring from the Process information.
When the main service starts it does a Process.GetProcessByName for the
xxx.exe in an attempt to reconnect to any processes that may (still) be
running.
The problem is that I don't see any information in the Process object that
allows me to identify the queue (or anything else) that identifies this
process.
All I need is the original commandline options. But I don't see a way to get
that information either. The Arguments are in the startinfo member but are
usually not set. So is there some way to set and retrieve some type of
information to identify the process? Preferably something through the
ProcessStartInfo that can be retrieved directly through the process object.
OR is there away to snoop into the running process using reflection?