internal DataSourceCacheManager (int cacheDuration, string cacheKeyDependency, DataSourceCacheExpiry cacheExpirationPolicy, Control owner, HttpContext context) { this.cacheDuration = cacheDuration; this.cacheKeyDependency = cacheKeyDependency; this.cacheExpirationPolicy = cacheExpirationPolicy; this.controlID = owner.UniqueID; this.owner = owner; this.context = context; if (DataCache [controlID] == null) DataCache [controlID] = new object (); }
internal DataSourceCacheManager(int cacheDuration, string cacheKeyDependency, DataSourceCacheExpiry cacheExpirationPolicy, Control owner, HttpContext context) { this.cacheDuration = cacheDuration; this.cacheKeyDependency = cacheKeyDependency; this.cacheExpirationPolicy = cacheExpirationPolicy; this.controlID = owner.UniqueID; this.owner = owner; this.context = context; if (DataCache [controlID] == null) { DataCache [controlID] = new object(); } }