![]() |
LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
|
Implements ILicenseService
interface.
More...
Public Member Functions | |||||||
string | AssignUser (ulong licenseId, LicenseUser user) | ||||||
Assign User to a License.
| |||||||
License | CheckLicense (License license, string hardwareId) | ||||||
Checks the validity of license against a certain hardware ID.
| |||||||
uint | CountLicenseTransfers (CountTransfersRequestDto dto) | ||||||
Counts license transfers if requesting manager has access permissions to it.
| |||||||
CustomField | CreateLicenseCustomField (CreateCustomFieldDto dto) | ||||||
Creates a license custom field.
| |||||||
string | DeleteLicense (ulong licenseId) | ||||||
Delete a single License.
| |||||||
string | DeleteLicenseCustomField (uint fieldId) | ||||||
Deletes license custom field.
| |||||||
string | DisableLicense (ulong licenseId) | ||||||
Disables the license without devices.
| |||||||
string | EnableLicense (ulong licenseId) | ||||||
Enables the license.
| |||||||
string[] | GenerateLicenseKey (string productCode, uint quantity=1) | ||||||
Connect to the LicenseSpring platform and generate requested amount of license keys.Note, license keys generated here are NOT stored in LicenseSpring system. They get stored once you make an order. | |||||||
ActivationHistory[] | ListActivationHistories (ListActivationHistoriesRequestDto dto, out uint count) | ||||||
Shows all license activation histories the requesting manager has access permissions to.
| |||||||
CustomField[] | ListLicenseCustomFields (ListCustomFieldsRequestDto dto, out uint Count) | ||||||
Retrieves license custom fields by license id.
| |||||||
License[] | ListLicenses (ListLicensesRequestDto dto, out uint Count) | ||||||
Retrieves license infrmation from LicenseSpring platform.
| |||||||
LicenseUser[] | ListLicenseUsers (ListUsersRequestDto dto, out uint Count) | ||||||
Retrieves infrmation about license users from LicenseSpring platform.
| |||||||
UsageHistory[] | ListUsageHistories (ListUsageHistoriesRequestDto dto, out uint count) | ||||||
Shows all license usage histories the requesting manager has access permissions to.
| |||||||
License | ResetConsumptions (ulong licenseId) | ||||||
Reset license consumptions.
| |||||||
string | ResetLicense (ulong licenseId) | ||||||
Reset a single License.
| |||||||
void | SaveLicenseByKey (string key, string path) | ||||||
Retrieves license information from LicenseSpring platform and saves it to a file. This file can be used for offline license updating using licensing SDK. See License.UpdateOffline() function in licensing SDK.
| |||||||
string | SetUserPassword (string userEmail, string password) | ||||||
Sets password for a single user if requesting manager has access permissions to it.
| |||||||
string | SetUserPassword (ulong userId, string password) | ||||||
Sets password for a single user if requesting manager has access permissions to it.
| |||||||
string | UnassignUser (ulong licenseId, ulong userId) | ||||||
Unassign User from a License.
| |||||||
License | UpdateLicense (UpdateLicenseRequestDto dto, ulong licenseId) | ||||||
Updates the license.
| |||||||
CustomField | UpdateLicenseCustomField (ulong id, string value) | ||||||
Updates a license custom field.
| |||||||
License | UpdateLicenseProductFeatures (AddLicenseProductFeatureDto[] features, ulong licenseId) | ||||||
Updates license product features.
| |||||||
LicenseUser | UpdateLicenseUser (LicenseUser user) | ||||||
Updates license user.
| |||||||
![]() | |||||||
void | Initialize (ManagementConfiguration configuration) | ||||||
Initialize management service with given configuration.
| |||||||
bool | IsInitialized () | ||||||
Check whether management service has been initialized.
| |||||||
bool | IsOnline (bool throwExceptions=false) | ||||||
Helper method, it checks connection to the LicenseSpring platform.
| |||||||
Implements ILicenseService
interface.
string LicenseSpring.LicenseService.AssignUser | ( | ulong | licenseId, |
LicenseUser | user | ||
) |
Assign User to a License.
licenseId | The Id of the license. |
user | License user to assign. |
Implements LicenseSpring.ILicenseService.
Checks the validity of license against a certain hardware ID.
license | The License to check. |
hardwareId | Hardware id of the device. |
Implements LicenseSpring.ILicenseService.
uint LicenseSpring.LicenseService.CountLicenseTransfers | ( | CountTransfersRequestDto | dto | ) |
Counts license transfers if requesting manager has access permissions to it.
dto | Data transfer object that is used for requesting license transfers. |
Implements LicenseSpring.ILicenseService.
CustomField LicenseSpring.LicenseService.CreateLicenseCustomField | ( | CreateCustomFieldDto | dto | ) |
Creates a license custom field.
dto | Data transfer object that is used for creating a custom field. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.DeleteLicense | ( | ulong | licenseId | ) |
Delete a single License.
licenseId | The Id of the license that will be deleted. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.DeleteLicenseCustomField | ( | uint | fieldId | ) |
Deletes license custom field.
fieldId | The Id of the custom field that will be deleted. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.DisableLicense | ( | ulong | licenseId | ) |
Disables the license without devices.
licenseId | The Id of the license that will be disabled. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.EnableLicense | ( | ulong | licenseId | ) |
Enables the license.
licenseId | The Id of the license that will be enabled. |
Implements LicenseSpring.ILicenseService.
string[] LicenseSpring.LicenseService.GenerateLicenseKey | ( | string | productCode, |
uint | quantity = 1 |
||
) |
Connect to the LicenseSpring platform and generate requested amount of license keys.Note, license keys generated here are NOT stored in LicenseSpring system. They get stored once you make an order.
Implements LicenseSpring.ILicenseService.
ActivationHistory[] LicenseSpring.LicenseService.ListActivationHistories | ( | ListActivationHistoriesRequestDto | dto, |
out uint | count | ||
) |
Shows all license activation histories the requesting manager has access permissions to.
dto | Data transfer object that is used for searching through all activation histories. |
count | Quantity of activation histories, use for iteration of the result pages. |
Implements LicenseSpring.ILicenseService.
CustomField[] LicenseSpring.LicenseService.ListLicenseCustomFields | ( | ListCustomFieldsRequestDto | dto, |
out uint | Count | ||
) |
Retrieves license custom fields by license id.
dto | Data transfer object that is used for searching through all custom fields. |
count | Quantity of custom fields, use for iteration of the result pages. |
Implements LicenseSpring.ILicenseService.
License[] LicenseSpring.LicenseService.ListLicenses | ( | ListLicensesRequestDto | dto, |
out uint | Count | ||
) |
Retrieves license infrmation from LicenseSpring platform.
dto | Data transfer object that is used for searching through all licenses. |
count | Quantity of licenses, use for iteration of the result pages. |
Implements LicenseSpring.ILicenseService.
LicenseUser[] LicenseSpring.LicenseService.ListLicenseUsers | ( | ListUsersRequestDto | dto, |
out uint | Count | ||
) |
Retrieves infrmation about license users from LicenseSpring platform.
dto | Data transfer object that is used for searching through all license users. |
count | Quantity of license users, use for iteration of the result pages. |
Implements LicenseSpring.ILicenseService.
UsageHistory[] LicenseSpring.LicenseService.ListUsageHistories | ( | ListUsageHistoriesRequestDto | dto, |
out uint | count | ||
) |
Shows all license usage histories the requesting manager has access permissions to.
dto | Data transfer object that is used for searching through all usage histories. |
count | Quantity of usage histories, use for iteration of the result pages. |
Implements LicenseSpring.ILicenseService.
License LicenseSpring.LicenseService.ResetConsumptions | ( | ulong | licenseId | ) |
Reset license consumptions.
licenseId | The Id of the license that will be reset. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.ResetLicense | ( | ulong | licenseId | ) |
Reset a single License.
licenseId | The Id of the license that will be reset. |
Implements LicenseSpring.ILicenseService.
void LicenseSpring.LicenseService.SaveLicenseByKey | ( | string | key, |
string | path | ||
) |
Retrieves license information from LicenseSpring platform and saves it to a file. This file can be used for offline license updating using licensing SDK. See License.UpdateOffline() function in licensing SDK.
key | License key of license you want to save. |
path | Path on your device where the file will be created. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.SetUserPassword | ( | string | userEmail, |
string | password | ||
) |
Sets password for a single user if requesting manager has access permissions to it.
userEmail | User email |
password | The new password. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.SetUserPassword | ( | ulong | userId, |
string | password | ||
) |
Sets password for a single user if requesting manager has access permissions to it.
userId | Id of the license user. |
password | The new password. |
Implements LicenseSpring.ILicenseService.
string LicenseSpring.LicenseService.UnassignUser | ( | ulong | licenseId, |
ulong | userId | ||
) |
Unassign User from a License.
licenseId | The Id of the license. |
userId | Id of the license user to unassign. |
Implements LicenseSpring.ILicenseService.
License LicenseSpring.LicenseService.UpdateLicense | ( | UpdateLicenseRequestDto | dto, |
ulong | licenseId | ||
) |
Updates the license.
dto | Data transfer object that is used for updating licenses. |
licenseId | The Id of the license that will be updated. |
Implements LicenseSpring.ILicenseService.
CustomField LicenseSpring.LicenseService.UpdateLicenseCustomField | ( | ulong | id, |
string | value | ||
) |
Updates a license custom field.
id | Id of the custom field. |
value | Value of the custom field. |
Implements LicenseSpring.ILicenseService.
License LicenseSpring.LicenseService.UpdateLicenseProductFeatures | ( | AddLicenseProductFeatureDto[] | features, |
ulong | licenseId | ||
) |
Updates license product features.
features | Features you want to add to the license. |
licenseId | The Id of the license that will be updated. |
Implements LicenseSpring.ILicenseService.
LicenseUser LicenseSpring.LicenseService.UpdateLicenseUser | ( | LicenseUser | user | ) |
Updates license user.
user | License user to be updated. |
Implements LicenseSpring.ILicenseService.