So I want to have two applications: The first one will be a WinForms GUI (probably .NET Framework) and the second one is a .NET Core console application that does all the processing.
My goal is to have the WinForms applications start the console application when needed and provide the task, which the console application should complete, as a startup parameter. The console application should then work on the task and report the current status/progress back to the GUI every second or so including errors and warnings. When everything is done the console application should report that it has finished and close.
I thought I could start the console application using a ProcessStartInfo
that would redirect the output of the console application. The console application would just output all important data each second and the WinForms application would then filter and process this output to get the data.
This looks like a not very optimal way to me and I hope I can get some feedback on what I could try/should use instead of this solution. I am very new to communication between two applications.