Beispiel #1
0
        public FileLock(String name, TimeSpan timeout)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException(nameof(name), @"Name cannot be null or empty.");
            }

            Name    = name;
            Path    = LockHelper.GetFilePath(name);
            Timeout = timeout;
        }