示例#1
0
文件: Cache.cs 项目: troyanich/Test
        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, "pipeline");
            Ensure.ArgumentNotNull(cachePruner, "cachePruner");

            this.Pipeline = pipeline;
            cachePruner.Start(this);
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        /// <exception cref="ArgumentNullException"><paramref name="pipeline"/> is <see langword="null"/>.</exception>
        /// <exception cref="ArgumentNullException"><paramref name="cachePruner"/> is <see langword="null"/>.</exception>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, nameof(pipeline));
            Ensure.ArgumentNotNull(cachePruner, nameof(cachePruner));

            this.Pipeline = pipeline;
            cachePruner.Start(this);
        }
示例#3
0
文件: Cache.cs 项目: bbawol/ninject
        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, "pipeline");
            Ensure.ArgumentNotNull(cachePruner, "cachePruner");

            this.Pipeline = pipeline;
            cachePruner.Start(this);
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Contract.Requires(pipeline != null);
            Contract.Requires(cachePruner != null);

            this.Pipeline = pipeline;
            cachePruner.Start(this);
        }
示例#5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, "pipeline");
            Ensure.ArgumentNotNull(cachePruner, "cachePruner");

            _entries = new Multimap<IBinding, CacheEntry>();
            Pipeline = pipeline;
            cachePruner.Start(this);
        }
示例#6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, "pipeline");
            Ensure.ArgumentNotNull(cachePruner, "cachePruner");

            _entries = new Multimap <IBinding, CacheEntry>();
            Pipeline = pipeline;
            cachePruner.Start(this);
        }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivationCache"/> class.
 /// </summary>
 /// <param name="cachePruner">The cache pruner.</param>
 public ActivationCache(ICachePruner cachePruner)
 {
     cachePruner.Start(this);
 }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivationCache"/> class.
 /// </summary>
 /// <param name="cachePruner">The cache pruner.</param>
 public ActivationCache(ICachePruner cachePruner)
 {
     Ensure.ArgumentNotNull(cachePruner, nameof(cachePruner));
     cachePruner.Start(this);
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivationCache"/> class.
 /// </summary>
 /// <param name="cachePruner">The cache pruner.</param>
 public ActivationCache(ICachePruner cachePruner)
 {
     Contract.Requires(cachePruner != null);
     cachePruner.Start(this);
 }
示例#10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivationCache"/> class.
 /// </summary>
 /// <param name="cachePruner">The cache pruner.</param>
 public ActivationCache(ICachePruner cachePruner)
 {
     cachePruner.Start(this);
 }
示例#11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cache"/> class.
 /// </summary>
 /// <param name="pipeline">The pipeline component.</param>
 /// <param name="cachePruner">The cache pruner component.</param>
 public Cache(IPipeline pipeline, ICachePruner cachePruner)
 {
     this.Pipeline = pipeline;
     cachePruner.Start(this);
 }
示例#12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cache"/> class.
 /// </summary>
 /// <param name="pipeline">The pipeline component.</param>
 /// <param name="cachePruner">The cache pruner component.</param>
 public Cache(IPipeline pipeline, ICachePruner cachePruner)
 {
     this.Pipeline = pipeline;
     cachePruner.Start(this);
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivationCache"/> class.
 /// </summary>
 /// <param name="cachePruner">The cache pruner.</param>
 public ActivationCache(ICachePruner cachePruner)
 {
     Contract.Requires(cachePruner != null);
     cachePruner.Start(this);
 }