Example #1
0
 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;
 }
Example #3
0
 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;
 }