Hi Jon,
Here are a couple ideas that may or may not work for you, depending on your
application, which are probably much more graceful than a Kill on the
process. You have two separate processes and will need to get them to
communicate somehow. You could add a Cancel property to your console
application and have it check that property periodically. Then use Remoting
to allow the service to set that Cancel property.
Another potential option is to use WCF. You can have the console
applications host their own Web Service and then make the Windows Service
call the console Web Service, which would set the Cancel property.
I don't know if this will work for you, but maybe it is something you can use.
Joe
--
http://www.csharp-station.com
"Jon Davis" wrote:
Is there such a thing as a Windows standard for killing a console app that
is monitored by a System.Diagnostics.Process object?
I'm hosting several C# console apps in a C# Windows service and would like
to standardize on a graceful termination method when the Windows service
stops.
Jon