51Degrees Device Detection .NET  4.1

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Examples.ExampleBase Class Reference

Inheritance diagram for FiftyOne.DeviceDetection.Examples.ExampleBase:

[legend]

Static Protected Member Functions

static IEnumerable< string >  GetUserAgents (string userAgentsFile, int count)
Loops around the User-Agents file returning User-Agents until the required number have been returned. More...
static IEnumerable< string >  GetUserAgents (string userAgentsFile, int count, int randomness)
Returns User-Agents that have had a number of characters altered. More...
static IEnumerable< string >  Report (List< string > input, int count, int maxDistinctUAs, int marks)
static void  OutputException (Exception ex, int depth=0)

Member Function Documentation

◆ GetUserAgents() [1/2]

static IEnumerable<string> FiftyOne.DeviceDetection.Examples.ExampleBase.GetUserAgents ( string   userAgentsFile,
int   count  
)
static protected

Loops around the User-Agents file returning User-Agents until the required number have been returned.

Parameters
userAgentsFile - Source file of User-Agents where each User-Agents is a single line of characters
count - Number of User-Agents to return

apply

Returns
User-Agents with repetition
Examples
Hash/Performance/Program.cs.

◆ GetUserAgents() [2/2]

static IEnumerable<string> FiftyOne.DeviceDetection.Examples.ExampleBase.GetUserAgents ( string   userAgentsFile,
int   count,
int   randomness  
)
static protected

Returns User-Agents that have had a number of characters altered.

Used in examples where caching of User-Agents or difference matching techniques are required. The selection of characters is random.

Parameters
userAgentsFile - Source file of User-Agents where each User-Agents is a single line of characters
count - Number of User-Agents to return
randomness - Number of character adjustments to apply
Returns
User-Agents that are effectively unique