With the File License Store, you deploy your license key in a file that resides in the file system.
In order to register the file containing the license key: At the beginning of your code, before you call any QuickOPC, OPC Wizard operations or Rapid Toolkit for Sparkplug, obtain the static Instance Field from the LicensingManagement Class, and call the RegisterFile Method or RegisterFileWithExistenceCheck Method with appropriate arguments:
The third argument is the full (absolute) path and name to the license key file.
It is up to your code to determine the location (directory) and construct the path. In many cases, method like Assembly.GetExecutingAssembly Method can help you with that.
Your build and deployment procedures then need to make sure that the license key file is placed at the chosen location when your program runs.
The available registration methods differ as follows:
The license key registration call must be made before any QuickOPC, OPC Wizard or Rapid Toolkit for Sparkplug operation is performed, or before you attempt to retrieve the license info.
Note that the actual validity of the license is not checked at the time when the location is registered.
Sparkplug is a trademark of Eclipse Foundation, Inc. "MQTT" is a trademark of the OASIS Open standards consortium. Other related terms are trademarks of their respective owners. Any use of these terms on this site is for descriptive purposes only and does not imply any sponsorship, endorsement or affiliation.