Reload from file example of using 51Degrees IP intelligence.
This example illustrates how to use a single reference to the resource manager to use 51Degrees on-premise IP intelligence and invoke the reload functionality instead of maintaining a reference to the dataset directly.
This example is available in full on GitHub.
In detail, the example shows how to
1. Specify config for engine:
This setting specifies the performance profile that will be used when initializing the C library.
SetConcurrency set concurrency to available CPU size
2. Initialization of the engine with the following parameters:
WithConfigIpi allows to configure the Ipi matching algorithm.
WithDataFile sets the path to the local data file, this parameter is required to start the engine
WithAutoUpdate enables or disables auto update
WithFileWatch enables or disables file watching in case 3rd party updates the data file