当前位置: 首页>>代码示例>>C#>>正文


C# HttpBrowserCapabilities.DisableOptimizedCacheKey方法代码示例

本文整理汇总了C#中System.Web.HttpBrowserCapabilities.DisableOptimizedCacheKey方法的典型用法代码示例。如果您正苦于以下问题:C# HttpBrowserCapabilities.DisableOptimizedCacheKey方法的具体用法?C# HttpBrowserCapabilities.DisableOptimizedCacheKey怎么用?C# HttpBrowserCapabilities.DisableOptimizedCacheKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Web.HttpBrowserCapabilities的用法示例。


在下文中一共展示了HttpBrowserCapabilities.DisableOptimizedCacheKey方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OsProcess

 private bool OsProcess(NameValueCollection headers, HttpBrowserCapabilities browserCaps)
 {
     IDictionary capabilities = browserCaps.Capabilities;
     string target = headers["UA-OS"];
     RegexWorker worker = new RegexWorker(browserCaps);
     if (!worker.ProcessRegex(target, "(?'os'.+)"))
     {
         return false;
     }
     browserCaps.DisableOptimizedCacheKey();
     capabilities["platform"] = worker["${os}"];
     this.OSProcessGateways(headers, browserCaps);
     bool ignoreApplicationBrowsers = false;
     this.OSProcessBrowsers(ignoreApplicationBrowsers, headers, browserCaps);
     return true;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:16,代码来源:BrowserCapabilitiesFactory.cs

示例2: MonoProcess

 private bool MonoProcess(NameValueCollection headers, HttpBrowserCapabilities browserCaps)
 {
     IDictionary capabilities = browserCaps.Capabilities;
     string str = headers["UA-COLOR"];
     if (string.IsNullOrEmpty(str))
     {
         return false;
     }
     str = headers["UA-COLOR"];
     RegexWorker worker = new RegexWorker(browserCaps);
     if (!worker.ProcessRegex(str, @"mono(?'colorDepth'\d+)"))
     {
         return false;
     }
     browserCaps.DisableOptimizedCacheKey();
     capabilities["isColor"] = "false";
     capabilities["screenBitDepth"] = worker["${colorDepth}"];
     this.MonoProcessGateways(headers, browserCaps);
     bool ignoreApplicationBrowsers = false;
     this.MonoProcessBrowsers(ignoreApplicationBrowsers, headers, browserCaps);
     return true;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:22,代码来源:BrowserCapabilitiesFactory.cs

示例3: VoiceProcess

 private bool VoiceProcess(NameValueCollection headers, HttpBrowserCapabilities browserCaps)
 {
     IDictionary capabilities = browserCaps.Capabilities;
     string str = headers["UA-VOICE"];
     if (string.IsNullOrEmpty(str))
     {
         return false;
     }
     str = headers["UA-VOICE"];
     RegexWorker worker = new RegexWorker(browserCaps);
     if (!worker.ProcessRegex(str, "(?i:TRUE)"))
     {
         return false;
     }
     browserCaps.DisableOptimizedCacheKey();
     capabilities["canInitiateVoiceCall"] = "true";
     this.VoiceProcessGateways(headers, browserCaps);
     bool ignoreApplicationBrowsers = false;
     this.VoiceProcessBrowsers(ignoreApplicationBrowsers, headers, browserCaps);
     return true;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:21,代码来源:BrowserCapabilitiesFactory.cs

示例4: DefaultXhtmlmpProcess

 private bool DefaultXhtmlmpProcess(NameValueCollection headers, HttpBrowserCapabilities browserCaps)
 {
     IDictionary capabilities = browserCaps.Capabilities;
     string target = headers["Accept"];
     RegexWorker worker = new RegexWorker(browserCaps);
     if (!worker.ProcessRegex(target, @"application/xhtml\+xml; profile|application/vnd\.wap\.xhtml\+xml"))
     {
         return false;
     }
     target = headers["Accept"];
     if (worker.ProcessRegex(target, "text/hdml"))
     {
         return false;
     }
     target = headers["Accept"];
     if (worker.ProcessRegex(target, @"text/vnd\.wap\.wml"))
     {
         return false;
     }
     browserCaps.DisableOptimizedCacheKey();
     capabilities["preferredRenderingMime"] = "text/html";
     capabilities["preferredRenderingType"] = "xhtml-mp";
     browserCaps.HtmlTextWriter = "System.Web.UI.XhtmlTextWriter";
     bool ignoreApplicationBrowsers = false;
     this.DefaultXhtmlmpProcessBrowsers(ignoreApplicationBrowsers, headers, browserCaps);
     return true;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:27,代码来源:BrowserCapabilitiesFactory.cs

示例5: PixelsProcess

 private bool PixelsProcess(NameValueCollection headers, HttpBrowserCapabilities browserCaps)
 {
     IDictionary capabilities = browserCaps.Capabilities;
     string str = headers["UA-PIXELS"];
     if (string.IsNullOrEmpty(str))
     {
         return false;
     }
     str = headers["UA-PIXELS"];
     RegexWorker worker = new RegexWorker(browserCaps);
     if (!worker.ProcessRegex(str, @"(?'screenWidth'\d+)x(?'screenHeight'\d+)"))
     {
         return false;
     }
     browserCaps.DisableOptimizedCacheKey();
     capabilities["screenPixelsHeight"] = worker["${screenHeight}"];
     capabilities["screenPixelsWidth"] = worker["${screenWidth}"];
     this.PixelsProcessGateways(headers, browserCaps);
     bool ignoreApplicationBrowsers = false;
     this.PixelsProcessBrowsers(ignoreApplicationBrowsers, headers, browserCaps);
     return true;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:22,代码来源:BrowserCapabilitiesFactory.cs


注:本文中的System.Web.HttpBrowserCapabilities.DisableOptimizedCacheKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。