public void HandleEvent(HttpContext httpContext, DataSource oldDataSource, DataSource newDataSource)
 {
     httpContext.GetCache().RemoveAll();
     ResponseCacheManager.RemoveAll(httpContext);
 }
 public void HandleEvent(HttpContext httpContext, Data.Entities.Endpoint oldEndpoint, Data.Entities.Endpoint newEndpoint)
 {
     httpContext.GetCache().RemoveAll();
     ResponseCacheManager.RemoveAll(httpContext);
 }
 public void HandleEvent(HttpContext httpContext, Menu menu)
 {
     httpContext.GetCache().RemoveMenus();
     ResponseCacheManager.RemoveAll(httpContext);
 }
Example #4
0
 public void HandleEvent(HttpContext httpContext, Object @object)
 {
     httpContext.GetCache().RemoveAll();
     ResponseCacheManager.RemoveAll(httpContext);
 }
Example #5
0
		/// <summary>
		/// 初期設定 XML ファイルのパスを指定して、HatomaruManagerのインスタンスを開始します。
		/// </summary>
		public HatomaruManager(string iniFilePath){
			myIniData = new IniData(iniFilePath);
			myIniDataTime = myIniData.File.LastWriteTime;

			myTemplate = new XmlDocument();
			myTemplate.XmlResolver = null;
			myTemplate.Load(myIniData.Template.FullName);
			myTemplateTime = myIniData.Template.LastWriteTime;
			myResponseCache = new ResponseCacheManager();

			// ルートXMLを取得
			string rootXmlFileName = IniData.DataPath.FullName + '\\' + DirectoryIndexName + DirectoryIndexExt;
			myRootXmlFile = new FileInfo(rootXmlFileName);


			myAmazonManager = new AmazonManager(this);
			myAmazonManager.CacheDir = myIniData.AmazonCachePath;
		}
 public void HandleEvent(HttpContext httpContext, Form form)
 {
     httpContext.GetCache().RemoveForms();
     ResponseCacheManager.RemoveAll(httpContext);
 }
Example #7
0
 public ResponseCacheManager_Tests()
 {
     _cacheManager = new ResponseCacheManager <int>(NullLogger <ResponseCacheManager <int> > .Instance,
                                                    NullLogger <WlMemoryCache> .Instance, new MemoryCacheOptions());
 }