◆ CheckDataFile() [1/2]
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 -
◆ CheckDataFile() [2/2]
static void FiftyOne.DeviceDetection.Examples.ExampleUtils.CheckDataFile ( DeviceDetectionHashEngine engine, ILogger logger ) staticDisplay information about the data file and log warnings if specific requirements are not met.
- Parameters
-
- engine -
- logger -
◆ FindFile()
static string FiftyOne.DeviceDetection.Examples.ExampleUtils.FindFile ( string filename ) staticFind 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.