コード例 #1
0
        /// <summary>
        /// Starts pruning the specified pruneable based on the rules of the pruner.
        /// </summary>
        /// <param name="pruneable">The pruneable that will be pruned.</param>
        public void Start(IPruneable pruneable)
        {
            Ensure.ArgumentNotNull(pruneable, "pruneable");

            this.caches.Add(pruneable);
            if (this.timer == null)
            {
                this.timer = new NinjectTimer(this.PruneCacheIfGarbageCollectorHasRun, this.GetTimeoutInMilliseconds());
            }
        }
コード例 #2
0
        /// <summary>
        /// Starts pruning the specified pruneable based on the rules of the pruner.
        /// </summary>
        /// <param name="pruneable">The pruneable that will be pruned.</param>
        public void Start(IPruneable pruneable)
        {
            Ensure.ArgumentNotNull(pruneable, "pruneable");

            this.caches.Add(pruneable);
            if (this.timer == null)
            {
                this.timer = new NinjectTimer(this.PruneCacheIfGarbageCollectorHasRun, this.GetTimeoutInMilliseconds());
            }
        }