process - UWP detect if Desktop Bridge app is running -


i have uwp contains desktop bridge component. uwp contains interactive code, including handling session management (login , logout). desktop app runs in background - displays no ui of time - must running when app's user signed in (the uwp , desktop components share auth). if desktop app not running when uwp starts, app signed in, uwp needs start desktop app. similarly, whenever uwp signs in user, needs start desktop component (if isn't running). signing out user doesn't strictly require exiting desktop app, though wouldn't hurt. critically, desktop component must not (automatically) exit when uwp exits, there's no guarantee on launch of uwp whether desktop app launched previous instance (and still running) or not.

the problem is, can't find way uwp detect whether desktop bridge component running, or kill already-running instance. methods in fulltrustprocesslauncher not return process object or other way monitor desktop app.

how can uwp detect if desktop bridge component running? if running, can uwp stop desktop bridge app?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -