public static bool TryCreate(string name, int timeout, out InterProcessLock thelock) { thelock = new InterProcessLock(name, TimeSpan.FromMilliseconds(timeout)); return(thelock.IsAcquired); }
public static bool TryCreate(string name, int timeout, out InterProcessLock thelock) { thelock = new InterProcessLock(name, TimeSpan.FromMilliseconds(timeout)); return thelock.IsAcquired; }
public static bool TryCreate(string name, TimeSpan timeout, out InterProcessLock thelock) { thelock = new InterProcessLock(name, timeout); return(thelock.IsAcquired); }
public static bool TryCreate(string name, TimeSpan timeout, out InterProcessLock thelock) { thelock = new InterProcessLock(name, timeout); return thelock.IsAcquired; }