Method AppSingleInstance.AlreadyRunning
Overload
Detects whether a process of this app is already running.
public static bool AlreadyRunning(string mutex, IEnumerable<string> notifyArgs = null, int waitMS = 0)
Parameters
mutex (string)
A unique string to use for mutex name (see System.Threading.Mutex.Mutex). If prefix |
notifyArgs (IEnumerable<string>)
If not
|
waitMS (int)
Milliseconds to wait until this process can run. No timeout if -1. |
Returns
bool
True if already running. |
Exceptions
InvalidOperationException
This function already called. |
Exception
Exceptions of System.Threading.Mutex.Mutex. |