Class BaseLicenseService
Abstract class with functionality used by license manager.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.ServiceModel
Assembly: Terrasoft.Core.ServiceModel.dll
Syntax
public abstract class BaseLicenseService : BaseService
Properties
LicenseRepository
Declaration
protected LicenseRepository LicenseRepository { get; }
Property Value
Type | Description |
---|---|
LicenseRepository |
LicManager
Declaration
protected ILicManager LicManager { get; }
Property Value
Type | Description |
---|---|
ILicManager |
Methods
CheckRights()
Declaration
protected virtual void CheckRights()
CreateLicenseRequest(String)
Creates license request.
Declaration
public virtual void CreateLicenseRequest(string customerId)
Parameters
Type | Name | Description |
---|---|---|
System.String | customerId |
CreateVersionedLicenseRequest(String, String)
Creates license request.
Declaration
public virtual void CreateVersionedLicenseRequest(string customerId, string licVersion)
Parameters
Type | Name | Description |
---|---|---|
System.String | customerId | Customer id. |
System.String | licVersion | License version. |
DeleteLicenses()
Deletes all licenses.
Declaration
public virtual BaseResponse DeleteLicenses()
Returns
Type | Description |
---|---|
BaseResponse |
GetAssemblyVersion()
Gets assembly version.
Declaration
public virtual AssemblyVersionResponse GetAssemblyVersion()
Returns
Type | Description |
---|---|
AssemblyVersionResponse | Service response with assembly version. |
GetCustomerId()
Gets licensing company identifier.
Declaration
public virtual CustomerIdResponse GetCustomerId()
Returns
Type | Description |
---|---|
CustomerIdResponse | Service response with customer identifier. |
GetLicenseData(Guid)
Returns licenses data by package identifier.
Declaration
public virtual LicenseDataResponse GetLicenseData(Guid packageId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | packageId | License package identifier. |
Returns
Type | Description |
---|---|
LicenseDataResponse |
GetLicenses()
Returns all licenses and package data.
Declaration
public virtual LicensesResponse GetLicenses()
Returns
Type | Description |
---|---|
LicensesResponse |
GetUsersList()
Returns system users.
Declaration
public virtual UsersListResponse GetUsersList()
Returns
Type | Description |
---|---|
UsersListResponse |
SaveLicenseData(LicenseSaveData)
Saves licenses data by package identifier.
Declaration
public virtual BaseResponse SaveLicenseData(LicenseSaveData saveData)
Parameters
Type | Name | Description |
---|---|---|
LicenseSaveData | saveData | Lisense data for save. |
Returns
Type | Description |
---|---|
BaseResponse |
UploadLicenses(UploadLicenses)
Uploads licenses.
Declaration
public virtual BaseResponse UploadLicenses(UploadLicenses licenses)
Parameters
Type | Name | Description |
---|---|---|
UploadLicenses | licenses | Object with data of loading licenses. |
Returns
Type | Description |
---|---|
BaseResponse | Response indicating whether the operation was successful or not. |