ClientInfoParser Class

客户端信息解析器实现类。

Definition

Namespace: QuickAdmin.Service.Infrastructure
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
public class ClientInfoParser : IClientInfoParser
Inheritance
object    ClientInfoParser
Implements
IClientInfoParser

Constructors

ClientInfoParserInitializes a new instance of the ClientInfoParser class

Methods

Public Methods

GetIPAddress 从 HTTP 上下文中获取 IP 地址。
GetRequestEncoding 从 HTTP 请求中获取字符编码。
ParseIPAddress 从一个 IP 字符串中解析有效的 IP 地址。
ParseUserAgent 从 HTTP headers 中解析 User-Agent。

Protected Methods

GetBrowser(IHeaderDictionary) 从 HTTP headers 中识别浏览器信息。
GetBrowser(string) 从 User-Agent 字符串中识别浏览器信息。
GetDevice(IHeaderDictionary) 从 HTTP headers 中识别设备信息。
GetDevice(string) 从 User-Agent 字符串中识别设备信息。
GetOS(IHeaderDictionary) 从 HTTP headers 中识别操作系统信息。
GetOS(string) 从 User-Agent 字符串中识别操作系统信息。
IsSpider(IHeaderDictionary) 从 HTTP headers 中识别是否是爬虫。
IsSpider(string) 从 User-Agent 字符串中识别是否是爬虫。

See Also