In .NET Framework I used to use this class SingleInstance provided by Microsoft. Here is example on StackExchange, how o use it.
Since System.Runtime.Remote is no lon