Usage sharing is enabled by default if using some 51Degrees pipeline builders such as the DeviceDetectionOnPremisePipelineBuilder In this example, we show how to specifically add a shareUsage element to a Pipeline using configuration.As with all flow elements, this can also be handled in code, using the constructor parameters. The commented section in the example demonstrates this.
The 51d.json file contains all the configuration options. These are all optional, so each can be omitted if the default for that option is sufficient:
For details of what each setting does, see the constructor parameters in the reference documentation for the share usage element
This example is available in full on GitHub.
Expected output