示例#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);
        }
示例#2
0
 internal FileLock(FileLockManager toRelease)
 {
     _fileLockManager = toRelease;
 }