I have an application that instantiates two distinct processes in C#. Let them be A and B.
Usually, launching A would launch B under the hood. Because of a product bug on a specific version, for that faulty version I need to use a workaround based on launching process B first and then process A on top of it.
Everything works fine functionality-wise, but closing A won't close B this way. Because B ends up having no window when A comes into play, it cannot be nicely closed after closing A (if it could, I wouldn't have this problem) and must be killed with task manager.
Is there any way I can tie together the two C# Process
objects, so that closing A would trigger the closing of B?
Note: Killing them inside the app I'm writing is not an option, because user must decide when the A & B ensemble gets closed