LicenseSpring Management .Net SDK 1.9.0
Easily add Software Licensing to your application
LicenseSpring.LicenseService Class Reference

Implements ILicenseService interface More...

Inheritance diagram for LicenseSpring.LicenseService:
LicenseSpring.BaseService LicenseSpring.ILicenseService LicenseSpring.IService LicenseSpring.IService

Public Member Functions

string AssignUser (ulong licenseId, LicenseUser user)
 Assign User to a License More...
 
License CheckLicense (License license, string hardwareId)
 Checks the validity of license against a certain hardware ID. More...
 
uint CountLicenseTransfers (CountTransfersRequestDto dto)
 Counts license transfers if requesting manager has access permissions to it. More...
 
CustomField CreateLicenseCustomField (CreateCustomFieldDto dto)
 Creates a license custom field. More...
 
string DeleteLicense (ulong licenseId)
 Delete a single License More...
 
string DeleteLicenseCustomField (uint fieldId)
 Deletes license custom field. More...
 
string DisableLicense (ulong licenseId)
 Disables the license without devices. More...
 
string EnableLicense (ulong licenseId)
 Enables the license. More...
 
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. More...
 
ActivationHistory[] ListActivationHistories (ListActivationHistoriesRequestDto dto, out uint count)
 Shows all license activation histories the requesting manager has access permissions to. More...
 
CustomField[] ListLicenseCustomFields (ListCustomFieldsRequestDto dto, out uint Count)
 Retrieves license custom fields by license id. More...
 
License[] ListLicenses (ListLicensesRequestDto dto, out uint Count)
 Retrieves license infrmation from LicenseSpring platform. More...
 
LicenseUser[] ListLicenseUsers (ListUsersRequestDto dto, out uint Count)
 Retrieves infrmation about license users from LicenseSpring platform. More...
 
UsageHistory[] ListUsageHistories (ListUsageHistoriesRequestDto dto, out uint count)
 Shows all license usage histories the requesting manager has access permissions to. More...
 
License ResetConsumptions (ulong licenseId)
 Reset license consumptions More...
 
string ResetLicense (ulong licenseId)
 Reset a single License More...
 
void SaveLicenseByKey (string key, string path)
 Retrieves license infrmation from LicenseSpring platform and saves it to file. This file can be used for offline license updation using licensing SDK. See License.UpdateOffline() function in licensing SDK. More...
 
string SetUserPassword (string userEmail, string password)
 Sets password for a single user if requesting manager has access permissions to it. More...
 
string SetUserPassword (ulong userId, string password)
 Sets password for a single user if requesting manager has access permissions to it. More...
 
string UnassignUser (ulong licenseId, ulong userId)
 Unassign User from a License More...
 
License UpdateLicense (UpdateLicenseRequestDto dto, ulong licenseId)
 Updates the license. More...
 
CustomField UpdateLicenseCustomField (ulong id, string value)
 Updates a license custom field. More...
 
License UpdateLicenseProductFeatures (AddLicenseProductFeatureDto[] features, ulong licenseId)
 Updates license product features. More...
 
LicenseUser UpdateLicenseUser (LicenseUser user)
 Updates license user. More...
 
- Public Member Functions inherited from LicenseSpring.BaseService
void Initialize (ManagementConfiguration configuration)
 Initialize management service with given configuration More...
 
bool IsInitialized ()
 Check whether management service has been initialized More...
 
bool IsOnline (bool throwExceptions=false)
 Helper method, it checks connection to the LicenseSpring platform. More...
 
void Initialize (ManagementConfiguration configuration)
 Initialize management service with given configuration More...
 
bool IsInitialized ()
 Check whether management service has been initialized More...
 
bool IsOnline (bool throwExceptions=false)
 Helper method, it checks connection to the LicenseSpring platform. More...
 
string AssignUser (ulong licenseId, LicenseUser user)
 Assign User to a License More...
 
License CheckLicense (License license, string hardwareId)
 Checks the validity of license against a certain hardware ID. More...
 
uint CountLicenseTransfers (CountTransfersRequestDto dto)
 Counts license transfers if requesting manager has access permissions to it. More...
 
CustomField CreateLicenseCustomField (CreateCustomFieldDto dto)
 Creates a license custom field. More...
 
string DeleteLicense (ulong licenseId)
 Delete a single License More...
 
string DeleteLicenseCustomField (uint fieldId)
 Deletes license custom field. More...
 
string DisableLicense (ulong licenseId)
 Disables the license without devices. More...
 
string EnableLicense (ulong licenseId)
 Enables the license. More...
 
string[] GenerateLicenseKey (string productCode, uint quantity=1)
 Connect to the LicenseSpring platform and generate requested amount of license keys. More...
 
ActivationHistory[] ListActivationHistories (ListActivationHistoriesRequestDto dto, out uint count)
 Shows all license activation histories the requesting manager has access permissions to. More...
 
CustomField[] ListLicenseCustomFields (ListCustomFieldsRequestDto dto, out uint count)
 Retrieves license custom fields by license id. More...
 
License[] ListLicenses (ListLicensesRequestDto dto, out uint count)
 Retrieves license infrmation from LicenseSpring platform. More...
 
LicenseUser[] ListLicenseUsers (ListUsersRequestDto dto, out uint count)
 Retrieves infrmation about license users from LicenseSpring platform. More...
 
UsageHistory[] ListUsageHistories (ListUsageHistoriesRequestDto dto, out uint count)
 Shows all license usage histories the requesting manager has access permissions to. More...
 
License ResetConsumptions (ulong licenseId)
 Reset license consumptions More...
 
string ResetLicense (ulong licenseId)
 Reset a single License More...
 
void SaveLicenseByKey (string key, string path)
 Retrieves license infrmation from LicenseSpring platform and saves it to file. This file can be used for offline license updation using licensing SDK. See License.UpdateOffline() function in licensing SDK. More...
 
string SetUserPassword (string userEmail, string password)
 Sets password for a single user if requesting manager has access permissions to it. More...
 
string SetUserPassword (ulong userId, string password)
 Sets password for a single user if requesting manager has access permissions to it. More...
 
string UnassignUser (ulong licenseId, ulong userId)
 Unassign User from a License More...
 
License UpdateLicense (UpdateLicenseRequestDto dto, ulong licenseId)
 Updates the license. More...
 
CustomField UpdateLicenseCustomField (ulong id, string value)
 Updates a license custom field. More...
 
License UpdateLicenseProductFeatures (AddLicenseProductFeatureDto[] features, ulong licenseId)
 Updates license product features. More...
 
LicenseUser UpdateLicenseUser (LicenseUser user)
 Updates license user. More...
 

Detailed Description

Implements ILicenseService interface

Member Function Documentation

◆ AssignUser()

string LicenseSpring.LicenseService.AssignUser ( ulong  licenseId,
LicenseUser  user 
)

Assign User to a License

Implements LicenseSpring.ILicenseService.

◆ CheckLicense()

License LicenseSpring.LicenseService.CheckLicense ( License  license,
string  hardwareId 
)

Checks the validity of license against a certain hardware ID.

Implements LicenseSpring.ILicenseService.

◆ CountLicenseTransfers()

uint LicenseSpring.LicenseService.CountLicenseTransfers ( CountTransfersRequestDto  dto)

Counts license transfers if requesting manager has access permissions to it.

Implements LicenseSpring.ILicenseService.

◆ CreateLicenseCustomField()

CustomField LicenseSpring.LicenseService.CreateLicenseCustomField ( CreateCustomFieldDto  dto)

Creates a license custom field.

Implements LicenseSpring.ILicenseService.

◆ DeleteLicense()

string LicenseSpring.LicenseService.DeleteLicense ( ulong  licenseId)

Delete a single License

Implements LicenseSpring.ILicenseService.

◆ DeleteLicenseCustomField()

string LicenseSpring.LicenseService.DeleteLicenseCustomField ( uint  fieldId)

Deletes license custom field.

Implements LicenseSpring.ILicenseService.

◆ DisableLicense()

string LicenseSpring.LicenseService.DisableLicense ( ulong  licenseId)

Disables the license without devices.

Implements LicenseSpring.ILicenseService.

◆ EnableLicense()

string LicenseSpring.LicenseService.EnableLicense ( ulong  licenseId)

Enables the license.

Implements LicenseSpring.ILicenseService.

◆ GenerateLicenseKey()

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.

◆ ListActivationHistories()

ActivationHistory[] LicenseSpring.LicenseService.ListActivationHistories ( ListActivationHistoriesRequestDto  dto,
out uint  count 
)

Shows all license activation histories the requesting manager has access permissions to.

Implements LicenseSpring.ILicenseService.

◆ ListLicenseCustomFields()

CustomField[] LicenseSpring.LicenseService.ListLicenseCustomFields ( ListCustomFieldsRequestDto  dto,
out uint  Count 
)

Retrieves license custom fields by license id.

Implements LicenseSpring.ILicenseService.

◆ ListLicenses()

License[] LicenseSpring.LicenseService.ListLicenses ( ListLicensesRequestDto  dto,
out uint  Count 
)

Retrieves license infrmation from LicenseSpring platform.

Implements LicenseSpring.ILicenseService.

◆ ListLicenseUsers()

LicenseUser[] LicenseSpring.LicenseService.ListLicenseUsers ( ListUsersRequestDto  dto,
out uint  Count 
)

Retrieves infrmation about license users from LicenseSpring platform.

Implements LicenseSpring.ILicenseService.

◆ ListUsageHistories()

UsageHistory[] LicenseSpring.LicenseService.ListUsageHistories ( ListUsageHistoriesRequestDto  dto,
out uint  count 
)

Shows all license usage histories the requesting manager has access permissions to.

Implements LicenseSpring.ILicenseService.

◆ ResetConsumptions()

License LicenseSpring.LicenseService.ResetConsumptions ( ulong  licenseId)

Reset license consumptions

Implements LicenseSpring.ILicenseService.

◆ ResetLicense()

string LicenseSpring.LicenseService.ResetLicense ( ulong  licenseId)

Reset a single License

Implements LicenseSpring.ILicenseService.

◆ SaveLicenseByKey()

void LicenseSpring.LicenseService.SaveLicenseByKey ( string  key,
string  path 
)

Retrieves license infrmation from LicenseSpring platform and saves it to file. This file can be used for offline license updation using licensing SDK. See License.UpdateOffline() function in licensing SDK.

Implements LicenseSpring.ILicenseService.

◆ SetUserPassword() [1/2]

string LicenseSpring.LicenseService.SetUserPassword ( string  userEmail,
string  password 
)

Sets password for a single user if requesting manager has access permissions to it.

Implements LicenseSpring.ILicenseService.

◆ SetUserPassword() [2/2]

string LicenseSpring.LicenseService.SetUserPassword ( ulong  userId,
string  password 
)

Sets password for a single user if requesting manager has access permissions to it.

Implements LicenseSpring.ILicenseService.

◆ UnassignUser()

string LicenseSpring.LicenseService.UnassignUser ( ulong  licenseId,
ulong  userId 
)

Unassign User from a License

Implements LicenseSpring.ILicenseService.

◆ UpdateLicense()

License LicenseSpring.LicenseService.UpdateLicense ( UpdateLicenseRequestDto  dto,
ulong  licenseId 
)

Updates the license.

Implements LicenseSpring.ILicenseService.

◆ UpdateLicenseCustomField()

CustomField LicenseSpring.LicenseService.UpdateLicenseCustomField ( ulong  id,
string  value 
)

Updates a license custom field.

Implements LicenseSpring.ILicenseService.

◆ UpdateLicenseProductFeatures()

License LicenseSpring.LicenseService.UpdateLicenseProductFeatures ( AddLicenseProductFeatureDto[]  features,
ulong  licenseId 
)

Updates license product features.

Implements LicenseSpring.ILicenseService.

◆ UpdateLicenseUser()

LicenseUser LicenseSpring.LicenseService.UpdateLicenseUser ( LicenseUser  user)

Updates license user.

Implements LicenseSpring.ILicenseService.


The documentation for this class was generated from the following file: