C# Class FiftyOne.Foundation.Mobile.Detection.RequestHelper

Show file Open project: 51Degrees/dotNET-Device-Detection

Private Methods

Method Description
GetContent ( HttpRequest request, bool maximumDetail ) : byte[]

Provides the content as XML for the HttpRequest.

GetContent ( HttpRequest request, bool maximumDetail, bool fragment ) : byte[]

Provides the content as XML for the HttpRequest.

GetXmlSettings ( bool fragment ) : XmlWriterSettings

Provides the xml writer settings.

IsBlankField ( string field ) : bool

Returns true if the field provided is one that should not have it's contents sent to 51degrees for consideration a device matching piece of information.

IsLocalHost ( IPAddress address ) : bool

Returns true if the request is from the local host IP address.

WriteAssembly ( XmlWriter writer ) : void

Writes details about the assembly to the output stream.

WriteHeader ( XmlWriter writer, string key ) : void

Writer an XML header element with no value content.

WriteHeaderValue ( XmlWriter writer, string key, string value ) : void

Writes an XML header element with a value using CData.

WriteHostIP ( XmlWriter writer, string elementName ) : void

Writes details about the host IP address.

WriteProvider ( XmlWriter writer, WebProvider provider ) : void

Writes information about the data set being used by the provider.