The Licensing Client (.NET)
Last updated
Last updated
Zentitle2
Service terms© Copyright - Nalpeiron, all rights reserved Website use subject to Terms and Conditions. See our Privacy Policy Use of Zentitle is subject to our Service Terms and Conditions
The Zentitle.Licensing.Client
library serves as a C# SDK, streamlining the integration of applications with Zentitle2 Licensing API functionality, thus simplifying the implementation task for the developers.
The library provides 2 ways to integrate the Zentitle2 features into your system:
Use IActivation
class that represents the Zentitle2 license in your application. This is the preferred approach, as the activation instance handles the state of the license for you, making sure that the activation data are persisted correctly, keeping the number of API calls as low as possible. It provides appropriate methods to move between the possible license states and allows the developers to easily leverage all the Licensing API features.
Use generated LicensingClient
class, which acts as a strongly typed, error-handling proxy for all the calls to the Licensing API. However, it's worth noting that this method is more intricate and not suggested, as it necessitates the developer to implement the logic for persisting and loading the local license state, as well as handling errors and transitioning between the states (such as active or expired) and many other things covered by the IActivation
abstraction.
There are 2 ways of adding the SDK into your application:
Copy & paste the source code into your codebase. This approach will result in a single compiled assembly, which will contain both your app logic as well as licensing features and it won't allow the attacker to replace the Zentitle.Licensing.Client.dll
with a malicious one on the hosting machine. On the other side, it will make the process of upgrading the SDK to newer versions much less straightforward. The client code is stored in Github.
Reference the Zentitle.Licensing.Client Nuget package. The Nuget package targets frameworks .NET Standard 2.0
and .NET Framework 4.5
.
There are various configuration options for the SDK, which are explained on the Configuring the Activation page.
You can find sample applications using the .NET SDK on our Github account: https://github.com/Nalpeiron/samples-dotnet
Our client targets .NET Standard 2.0 and .NET Framework 4.5 to be compatible with all versions from .NET 4.5 through to the latest versions, including .NET8. Here is a compatibility chart and general information for .NET Standard 2.0: https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0