public interface IApplicationInstance : IAsyncDisposable The running instance of an application, which receives the launches of later processes.
Events
Launched
event EventHandler<ApplicationLaunch>? Launched Raised for each later launch, on a worker thread, one at a time and in order; dispatch window work through the application's host.
Remarks
Launches wait for the first handler, so subscribe right after claiming, before slow start-up work. A launching process reports itself forwarded only once a handler received its launch; one that is not received within a few seconds, or arrives while this instance is ending, keeps trying and may become the next running instance. A launch from a process that waits for a reply carries ApplicationLaunch.Reply; complete it once the launch is handled, outside the handler if the work takes longer.