/// <summary>
 /// Initializes a new instance of the <see cref="CachingRepositoryDecorator"/> class.
 /// </summary>
 /// <param name="siteName">The code name of a site.</param>
 /// <param name="cacheItemDuration">The time duration during which the repository method result is cached.</param>
 /// <param name="contentItemMetadataProvider">The object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public CachingRepositoryDecorator(string siteName, TimeSpan cacheItemDuration, IContentItemMetadataProvider contentItemMetadataProvider, bool cacheEnabled)
 {
     mSiteName                    = siteName.ToLowerInvariant();
     mCacheItemDuration           = cacheItemDuration;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     mCacheEnabled                = cacheEnabled;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CachingRepositoryDecorator"/> class.
 /// </summary>
 /// <param name="cacheItemDuration">Time duration during which the repository method result is cached.</param>
 /// <param name="contentItemMetadataProvider">Object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public CachingRepositoryDecorator(TimeSpan cacheItemDuration, IContentItemMetadataProvider contentItemMetadataProvider, bool cacheEnabled, IOutputCacheDependencies outputCacheDependencies)
 {
     mCacheItemDuration           = cacheItemDuration;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     mCacheEnabled            = cacheEnabled;
     mOutputCacheDependencies = outputCacheDependencies;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CachingRepositoryDecorator"/> class.
 /// </summary>
 /// <param name="siteName">The code name of a site.</param>
 /// <param name="cacheItemDuration">The time duration during which the repository method result is cached.</param>
 /// <param name="contentItemMetadataProvider">The object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public CachingRepositoryDecorator(string siteName, TimeSpan cacheItemDuration, IContentItemMetadataProvider contentItemMetadataProvider, bool cacheEnabled)
 {
     mSiteName = siteName.ToLowerInvariant();
     mCacheItemDuration = cacheItemDuration;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     mCacheEnabled = cacheEnabled;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OutputCacheDependencies"/> class.
 /// </summary>
 /// <param name="siteName">The code name of a site.</param>
 /// <param name="response">The HTTP response that will be used to create output cache depednencies.</param>
 /// <param name="contentItemMetadataProvider">The object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public OutputCacheDependencies(string siteName, HttpResponseBase response, IContentItemMetadataProvider contentItemMetadataProvider, bool cacheEnabled)
 {
     mSiteName = siteName.ToLowerInvariant();
     mResponse = response;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     mCacheEnabled = cacheEnabled;
 }
 public CachingQueryDecorator(
     IContentItemMetadataProvider contentItemMetadataProvider,
     ICmsCacheSettings cacheSettings)
 {
     this.contentItemMetadataProvider = contentItemMetadataProvider;
     this.cacheSettings = cacheSettings;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OutputCacheDependencies"/> class.
 /// </summary>
 /// <param name="response">HTTP response that will be used to create output cache dependencies.</param>
 /// <param name="contentItemMetadataProvider">object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="isCacheEnabled">Indicates whether caching is enabled.</param>
 public OutputCacheDependencies(
     HttpResponseBase response,
     IContentItemMetadataProvider contentItemMetadataProvider,
     ICmsCacheSettings cacheSettings)
 {
     this.response = response;
     this.contentItemMetadataProvider = contentItemMetadataProvider;
     isCacheEnabled = cacheSettings.IsCacheEnabled;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OutputCacheDependencies"/> class.
 /// </summary>
 /// <param name="response">HTTP response that will be used to create output cache dependencies.</param>
 /// <param name="contentItemMetadataProvider">object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public OutputCacheDependencies(HttpResponseBase response, IContentItemMetadataProvider contentItemMetadataProvider, bool cacheEnabled)
 {
     mResponse = response;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     mCacheEnabled = cacheEnabled;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CachingRepositoryDecorator"/> class.
 /// </summary>
 /// <param name="cacheItemDuration">Time duration during which the repository method result is cached.</param>
 /// <param name="contentItemMetadataProvider">Object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public CachingRepositoryDecorator(TimeSpan cacheItemDuration, IContentItemMetadataProvider contentItemMetadataProvider, bool cacheEnabled)
 {
     mCacheItemDuration           = cacheItemDuration;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     mCacheEnabled = cacheEnabled;
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CachingRepositoryDecorator"/> class.
 /// </summary>
 /// <param name="cachingRepoContext">Time duration during which the repository method result is cached.</param>
 /// <param name="contentItemMetadataProvider">Object that provides information about pages and info objects using their runtime type.</param>
 /// <param name="cacheEnabled">Indicates whether caching is enabled.</param>
 public CachingRepositoryDecorator(ICachingRepositoryContext cachingRepoContext, IContentItemMetadataProvider contentItemMetadataProvider, ICacheDependenciesStore cacheDependenciesStore)
 {
     this.cachingRepoContext      = cachingRepoContext;
     mContentItemMetadataProvider = contentItemMetadataProvider;
     this.cacheDependenciesStore  = cacheDependenciesStore;
 }