This topic provides technical details on licensing of .NET Standard (.NET Core) projects, using dotConnect for Mailchimp. For licensing on Full .NET Framework see the Licensing topic.
Unlike on full .NET Framework, on dotConnect for Mailchimp uses license keys on .NET Core. For registered version, the dotConnect for Mailchimp license key is specified at runtime, in the License Key connection string parameter. For trial version, license key files are used instead. They are generated by the product installer and placed to the C:\ProgramData\Devart\dotConnect\License\ folder.
Here is an example of specifying a license key parameter in a connection string:
Trial license key files are automatically generated when installing dotConnect for Mailchimp on the computer. This means that even though .NET Standard compatible assemblies are obtained via NuGet packages, you still need to download and install dotConnect for Mailchimp trial from Devart website to generate the trial license keys.
dotConnect for Mailchimp Trial checks license as a file in the C:\ProgramData\Devart\dotConnect\License\ folder. dotConnect for Mailchimp Trial installation automatically adds the license files to this folder. When deploying your project to another computer, you need to deploy the correspondung license key file to this folder.
The license key file of the trial version is named Devart.Data.MailChimp.key.
On Linux, there is no C:\ProgramData\ folder. You can copy the trial license key to another folder (for example, to the folder of the application itself) and specify its path in the License Key connection string parameter in the following way:
license key=trial:/home/test/Devart.Data.MailChimp.key
Please note that on Linux the path to the key file is case sensitive and must be specified exactly in the same case as it is in your file system.
After you purchased dotConnect for Mailchimp, you will get an email with the activation key. You can also view your key in the Devart Account, where you download your licensed product installers.
You must specify this activation key in the License Key connection string parameter.
You don't need to specify your license key in every connection string. Once a connection with a valid License Key is successfully opened, there will be no further license check in a current application domain. So, you can load your license key from somewhere (from embedded resource, etc.), open a test connection, and after this your application can work with connection strings without License Key.
Keys, specified in the connection string has priority over the key files, placed to the C:\ProgramData\Devart\dotConnect\License\ folder.
Licensed keys has priority over trial keys.
License information is loaded once and has effect over all of the provider instances in the application domain. However, if a key is loaded from file from the C:\ProgramData\Devart\dotConnect\License\ folder is loaded first, the first opening of a connection with the License Key connection string parameter overrides the license information, loaded from the file.