\r\n

51Degrees Device Detection .NET  4.3Newer Version 4.4

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Examples.ExampleUtils Class Reference

Static Public Member Functions

static string  FindFile (string filename)
Find the specified filename within the specified directory. More...
static void  CheckDataFile (IPipeline pipeline, ILogger logger)
Display information about the data file and log warnings if specific requirements are not met. More...

Public Attributes

const string  RESOURCE_KEY_ENV_VAR = "51D_RESOURCE_KEY"
The default environment variable used to get the resource key to use when running examples. More...
const int  DataFileAgeWarning = 30
If data file is older than this number of days then a warning will be displayed. More...

Member Function Documentation

◆ CheckDataFile()

static void FiftyOne.DeviceDetection.Examples.ExampleUtils.CheckDataFile ( IPipeline   pipeline,
ILogger   logger  
)
static

Display information about the data file and log warnings if specific requirements are not met.

Parameters
pipeline -
logger -

◆ FindFile()

static string FiftyOne.DeviceDetection.Examples.ExampleUtils.FindFile ( string   filename )
static

Find the specified filename within the specified directory.

If no directory is specified, the working directory is used. If the file cannot be found, the algorithm will move to the parent directory and repeat the process.

Parameters
filename -
Returns

Member Data Documentation

◆ DataFileAgeWarning

const int FiftyOne.DeviceDetection.Examples.ExampleUtils.DataFileAgeWarning = 30

If data file is older than this number of days then a warning will be displayed.

◆ RESOURCE_KEY_ENV_VAR

const string FiftyOne.DeviceDetection.Examples.ExampleUtils.RESOURCE_KEY_ENV_VAR = "51D_RESOURCE_KEY"

The default environment variable used to get the resource key to use when running examples.