◆ 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 protectedReturns 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