◆ 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 -
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.
Property Documentation
◆ EngineBuilder
DeviceDetectionHashEngineBuilder FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example.EngineBuilder getBuilder used to create an on-premise device detection engine.
◆ PipelineBuilder
DeviceDetectionPipelineBuilder FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.Program.Example.PipelineBuilder getBuilder used to create a Pipeline instance