示例#1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="DiskFreePercentRule"/> class.
        /// </summary>
        public DiskFreePercentRule(
            DiskFreePercentQuota quota,
            EvictAsync evictAsync,
            IAbsFileSystem fileSystem,
            AbsolutePath rootPath,
            DistributedEvictionSettings distributedEvictionSettings = null)
            : base(evictAsync, OnlyUnlinkedValue, distributedEvictionSettings)
        {
            Contract.Requires(quota != null);
            Contract.Requires(evictAsync != null);
            Contract.Requires(fileSystem != null);
            Contract.Requires(rootPath != null);

            _quota      = quota;
            _fileSystem = fileSystem;
            _rootPath   = rootPath;
        }