C# Class FiftyOne.Foundation.Mobile.Redirection.Azure.RequestRecord

A sub class which breaks the unique key of the request record into a partition key and a row key.
Inheritance: Redirection.RequestRecord
显示文件 Open project: 51Degrees/dotNET-Device-Detection Class Usage Examples

Private Properties

Property Type Description

Protected Methods

Method Description
RequestRecord ( HttpRequest request ) : System

If the IP address is IPv4 (4 bytes) then use the ip address as the high order bytes of the value and the hashcode as the low order bytes. If the IP address is IPv6 (8 bytes) then covert the bytes to a 64 bit integer. If anything else which we can't imagine use a hashcode of the string value.

Method Details

RequestRecord() protected method

If the IP address is IPv4 (4 bytes) then use the ip address as the high order bytes of the value and the hashcode as the low order bytes. If the IP address is IPv6 (8 bytes) then covert the bytes to a 64 bit integer. If anything else which we can't imagine use a hashcode of the string value.
protected RequestRecord ( HttpRequest request ) : System
request System.Web.HttpRequest
return System