I guess you are right, putting the logic into the bootstrapper makes more sense and the cost is negligible indeed.
I tried using your code but unfortunately I couldn't get it to work with Caliburn.Micro. I inherited from InstanceAwareApplication, created my unique fixed app GUID and subscribed to the necessary but nothing happened. And by nothing happened I mean that more than one instance of the application could be opened without problems.
Do I have to do anything different because I'm using the Caliburn bootstrapper? I'm using the latest release from nuget, the one with a sample bootstrapper.
On a side note, how hard would it be to accept command line args and pass them to the already running instance? I'm currently doing this manually but it would be nice to implement this together with the single instance behaviour.
I tried using your code but unfortunately I couldn't get it to work with Caliburn.Micro. I inherited from InstanceAwareApplication, created my unique fixed app GUID and subscribed to the necessary but nothing happened. And by nothing happened I mean that more than one instance of the application could be opened without problems.
Do I have to do anything different because I'm using the Caliburn bootstrapper? I'm using the latest release from nuget, the one with a sample bootstrapper.
On a side note, how hard would it be to accept command line args and pass them to the already running instance? I'm currently doing this manually but it would be nice to implement this together with the single instance behaviour.