C
C#3y ago
Dropps

creating a HostProcess to control other apps

Hello there, iam working on a bigger project needing following sooner or later for both things but iam alrdy curios on how i should proceed when building a application wich is run by a "host" process (responsible for loading in resources and configuring env variables for the referenced projects that need that and to be able to start and close the app) basicly the host process is supposed to run both apps (a dashboard and a launcher) wich are 2 diffrent wpf apps then also be able to create a "playground" for my plugin system wich can also be extending wpf apps meaning window in window apps whats the best way of achiveing that? i searched around online already but found nothing better than "Process.Start(blah)" but that doesnt give full control over the application
16 Replies
Patrick
Patrick3y ago
All of these apps are your code yes?
Dropps
DroppsOP3y ago
yes or 3rd party plugins which others can create by using our API we will provide for the plugin system
Patrick
Patrick3y ago
There’s no generic solution to this you will need to implement IPC for full control Your children apps need some way of listening to the commands and acting on them
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP3y ago
yes as they can be used on a server too and then be shared with streamed screens (small edge case nobody probably will use other than we self)
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP3y ago
the app is windows only anyways
Patrick
Patrick3y ago
Why would IPC be platform specific You don’t need it to be platform specific It’s a pretty crude concept Even just tcp pipe between the apps is pretty generic
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Patrick
Patrick3y ago
Implementation detail I should think
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Patrick
Patrick3y ago
TCP is quite literally IPC
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP3y ago
to be more accurate the issue is when you debug in visual studio and close the application via the window X sign it does just stop the wpf app not the contected services or other sub windows from it and the process in visual studio still runs wich you need to stop manually
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP3y ago
allright thanks alot
Want results from more Discord servers?
Add your server