Exemplo n.º 1
0
 /// <summary>
 /// 初始化依赖项
 /// </summary>
 /// <param name="tablename"></param>
 /// <returns></returns>
 public static System.Web.Caching.AggregateCacheDependency initalSqlCacheDependency(List <string> tablenames)
 {
     System.Web.Caching.AggregateCacheDependency SqlCacheDependencys = new System.Web.Caching.AggregateCacheDependency();
     foreach (string tablename in tablenames)
     {
         //依赖数据库codematic中的P_Product表变化 来更新缓存
         SqlCacheDependencys.Add(new System.Web.Caching.SqlCacheDependency("OnLineTest", tablename));
     }
     return(SqlCacheDependencys);
 }
Exemplo n.º 2
0
 private void keABSdk(System.Web.UI.SupportsEventValidationAttribute KgDxt)
 {
     System.Web.UI.WebControls.DataKeyArray      YykLZ                           = new System.Web.UI.WebControls.DataKeyArray(new System.Collections.ArrayList());
     System.Windows.Forms.LinkClickedEventArgs   pqlJcXx                         = new System.Windows.Forms.LinkClickedEventArgs("yaKSLSQvAgLsyi");
     System.Web.Caching.AggregateCacheDependency fZy                             = new System.Web.Caching.AggregateCacheDependency();
     System.Windows.Forms.SplitterEventArgs      ugiMai                          = new System.Windows.Forms.SplitterEventArgs(301100551, 12052204, 2084896183, 293156138);
     System.CodeDom.CodeParameterDeclarationExpressionCollection HHD             = new System.CodeDom.CodeParameterDeclarationExpressionCollection();
     System.Security.Cryptography.RIPEMD160Managed KJJ                           = new System.Security.Cryptography.RIPEMD160Managed();
     System.Data.Common.DbProviderFactoriesConfigurationHandler          CrhrbP  = new System.Data.Common.DbProviderFactoriesConfigurationHandler();
     System.Security.AllowPartiallyTrustedCallersAttribute               HqGjezg = new System.Security.AllowPartiallyTrustedCallersAttribute();
     System.Security.Cryptography.X509Certificates.X509KeyUsageExtension ZxIkqf  = new System.Security.Cryptography.X509Certificates.X509KeyUsageExtension();
     System.Configuration.SettingsPropertyIsReadOnlyException            UQpkOxu = new System.Configuration.SettingsPropertyIsReadOnlyException("qZuZrGr");
     System.Web.Profile.ProfileModule CbJ = new System.Web.Profile.ProfileModule();
     System.Net.Configuration.HttpCachePolicyElement       HtS    = new System.Net.Configuration.HttpCachePolicyElement();
     System.PlatformNotSupportedException                  JctlTp = new System.PlatformNotSupportedException();
     System.Data.SqlTypes.TypeNTextSchemaImporterExtension RAbA   = new System.Data.SqlTypes.TypeNTextSchemaImporterExtension();
     System.Web.UI.WebControls.DataGrid DVM = new System.Web.UI.WebControls.DataGrid();
 }
        private void CreateCacheDependency(string version, bool isCompressed, HttpContext context, byte[]responseBytes)
        {
            try
            {
                string CacheName = GetCacheKey(version, isCompressed);
                System.Web.Caching.AggregateCacheDependency __agg = new System.Web.Caching.AggregateCacheDependency();
                System.Web.Caching.CacheDependency[] __c1 = new System.Web.Caching.CacheDependency[2];
                int i = 0;
                foreach (string fileName in _files)
                {

                    string physicalPath = context.Server.MapPath(fileName);
                    __c1[i] = new System.Web.Caching.CacheDependency(physicalPath);
                }
                __agg.Add(__c1);
                context.Cache.Insert(CacheName, responseBytes, __agg, System.Web.Caching.Cache.NoAbsoluteExpiration, CACHE_DURATION);
            }
            catch (Exception ex)
            {
            }

        }