コード例 #1
0
ファイル: DataSourceCacheManager.cs プロジェクト: nobled/mono
		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 ();
		}
コード例 #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();
            }
        }