\r\n

51Degrees Device Detection .NET  4.4

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example Class Reference

Inheritance diagram for FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example:

[legend]

Collaboration diagram for FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example:

[legend]

Public Member Functions

 Example (DeviceDetectionPipelineBuilder pipelineBuilder, DeviceDetectionHashEngineBuilder engineBuilder, CompletionListener completionListener, ILogger< Example > logger)
Constructor More...
void  Run (string dataFile, string licenseKey, bool interactive)
Run the example. More...

Properties

DeviceDetectionPipelineBuilder  PipelineBuilder [get]
Builder used to create a Pipeline instance More...
DeviceDetectionHashEngineBuilder  EngineBuilder [get]
Builder used to create an on-premise device detection engine. More...
ILogger< Example >  Logger [get]

Constructor & Destructor Documentation

◆ Example()

FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example.Example ( DeviceDetectionPipelineBuilder   pipelineBuilder,
DeviceDetectionHashEngineBuilder   engineBuilder,
CompletionListener   completionListener,
ILogger< Example >   logger  
)

Constructor

Parameters
pipelineBuilder - A builder used to create a pipeline that includes device detection.
engineBuilder - A builder used to create an on-premise device detection engine. Generally, we wouldn't need this in addition to the pipeline builder above. In this example, we use it to check information about the data file before creating the full pipeline.
completionListener - A helper class that is used to watch for events that signal data updates have completed.
logger -
Examples
OnPremise/UpdateDataFile-Console/Program.cs.

Member Function Documentation

◆ Run()

void FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example.Run ( string   dataFile,
string   licenseKey,
bool   interactive  
)

Run the example.

Parameters
dataFile - Path to a data file to use in this example. May be absolute or relative. If relative, the example will search for a matching file in the project directories.
licenseKey - The license key to use when requesting a data file update.
interactive - If this example is being run in an interactive session, set this to true.
Examples
OnPremise/UpdateDataFile-Console/Program.cs.

Property Documentation