예제 #1
0
        public static void ReleaseSingleInstanceLock()
        {
            ManualResetEventSlim waitHandle = SingleInstanceLock.EnqueueMonitorDisabling();

            waitHandle.Wait();
        }
예제 #2
0
 public static bool AcquireSingleInstanceLock()
 {
     return(SingleInstanceLock.TryAcquireOwnershipNotifyLockHolder());
 }