Esempio n. 1
0
		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 ();
		}
Esempio n. 2
0
        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();
            }
        }