Licensed.App.Sdk 1.0.1

dotnet add package Licensed.App.Sdk --version 1.0.1
                    
NuGet\Install-Package Licensed.App.Sdk -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Licensed.App.Sdk" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Licensed.App.Sdk" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Licensed.App.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Licensed.App.Sdk --version 1.0.1
                    
#r "nuget: Licensed.App.Sdk, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Licensed.App.Sdk@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Licensed.App.Sdk&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Licensed.App.Sdk&version=1.0.1
                    
Install as a Cake Tool

Licensed.App C# SDK

Licensed.App provides a powerful solution for managing software licenses and user sessions. This SDK offers a simple way to integrate with the Licensed.App API from your C# applications, allowing you to authenticate users, manage sessions, and retrieve features and variables from your license server.

Features

  • Secure Authentication: Validate licenses and manage sessions with ease.
  • Heartbeat System: Automatically manage session validity through heartbeats.
  • Flexible API: Access features and variables dynamically, tailored to your application's needs.

Installation

Install the SDK via NuGet:

dotnet add package Licensed.App.Sdk

Quick Start

Here's how you can get started with Licensed.App in just a few steps.

1. Initialize the LicensedApp SDK

Pass your applicationId from the Licensed.App dashboard:

using Licensed.App.Sdk;

var licensedApp = new LicensedApp("your-application-id");

2. Connect Using a License Key

Authenticate your application with a valid license:

string licenseKey = "your-license-key";
var response = await licensedApp.Connect(licenseKey);

if (response != null)
{
    Console.WriteLine($"Connected with session ID: {licensedApp.SessionId}");
}

3. Access Features and Variables

Once connected, you can access features and variables from your server:

var feature = await licensedApp.GetFeature("premium-feature");
if (feature != null)
{
    Console.WriteLine($"Feature: {feature.Name}, Status: {feature.IsEnabled}");
}

var variable = await licensedApp.GetVariable("max-users");
if (variable != null)
{
    Console.WriteLine($"Variable: {variable.Name}, Value: {variable.Value}");
}

4. Disconnect

Ensure to disconnect when done:

await licensedApp.Disconnect();

Documentation

For more detailed information on all available methods and classes, please refer to the Licensed.App Documentation. If you encounter any issues, consult the docs or reach out for support.


That's it! You're now set up to manage licenses and sessions in your C# application with Licensed.App.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 193 10/13/2024
1.0.0 177 10/9/2024

This is the initial package.