PracticalPotato
❔ Passing data from a web page to a ""singleton"" C# desktop application
So, let's say I have a web page that has a button that opens my C# application (through a url protocol in the registry), through which it might receive some parameters.
However, I also want it so that if I have an instance of my C# application open, clicking the button will instead send those parameters to the already-open application, rather than starting a new instance of it.
How would I go about doing this?
------
Currently, I have it so that my program maintains a named mutex, and if that named mutex is owned by another process, then there is a previous instance of my program running, and the current instance aborts.
40 replies