/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }