/// <summary> /// Initializes a new instance of the <see cref="ViewComponentDescriptor"/> class. /// </summary> /// <param name="isCacheable">if set to <c>true</c> [is cacheable].</param> /// <param name="cacheStrategy">The cache strategy.</param> /// <param name="cacheKeyGenerator">The cache key generator.</param> public ViewComponentDescriptor(bool isCacheable, ViewComponentCache cacheStrategy, IViewComponentCacheKeyGenerator cacheKeyGenerator) { this.isCacheable = isCacheable; this.cacheStrategy = cacheStrategy; this.cacheKeyGenerator = cacheKeyGenerator; }