Example #1
0
        private FileLockManager GetOrCreateFileLockUnsafe(string fullName, TimeSpan timeout)
        {
            FileLockManager fileLockManager = null;

            if (!_lockedFiles.TryGetValue(fullName, out fileLockManager))
            {
                fileLockManager        = new FileLockManager(fullName, timeout, this);
                _lockedFiles[fullName] = fileLockManager;
            }
            return(fileLockManager);
        }
Example #2
0
 internal FileLock(FileLockManager toRelease)
 {
     _fileLockManager = toRelease;
 }