Technic or best way to know if an application is "ready" when it is started from another application ?
-
(both applications are written by us, application A can be a C# application or a C++ application ) I have an application A that starts application B. I would need to know when application B is ready to process some rpc messages from application A. I was thinking of sending a windows event from application B and wait for it in application A (application A can wait a little bit, no need to be extra fancy) Or maybe start sending rpc (dummy ping) message in repetition from application A until application B can answer them properly ? Any other better way to do this ? Thanks.
CI/CD = Continuous Impediment/Continuous Despair
-
(both applications are written by us, application A can be a C# application or a C++ application ) I have an application A that starts application B. I would need to know when application B is ready to process some rpc messages from application A. I was thinking of sending a windows event from application B and wait for it in application A (application A can wait a little bit, no need to be extra fancy) Or maybe start sending rpc (dummy ping) message in repetition from application A until application B can answer them properly ? Any other better way to do this ? Thanks.
CI/CD = Continuous Impediment/Continuous Despair
-
(both applications are written by us, application A can be a C# application or a C++ application ) I have an application A that starts application B. I would need to know when application B is ready to process some rpc messages from application A. I was thinking of sending a windows event from application B and wait for it in application A (application A can wait a little bit, no need to be extra fancy) Or maybe start sending rpc (dummy ping) message in repetition from application A until application B can answer them properly ? Any other better way to do this ? Thanks.
CI/CD = Continuous Impediment/Continuous Despair
If A has a FileSystemWatcher, and B writes a file when it starts, A gets a wake-up call via the FileSystemWatcher's event handler. [FileSystemWatcher Class (System.IO) | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=net-6.0)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I