LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
LicenseSpring.License Class Reference

License class, implements ILicense interface. More...

Inheritance diagram for LicenseSpring.License:
LicenseSpring.ILicense

Public Member Functions

int DaysRemaining ()
 How many days remaining till license expires.Days counter will be changed in midnight by UTC. 0 means license expires today.
 
bool Expired ()
 
LicenseFeature GetFeature (string featureCode)
 
bool IsMaintenancePeriodExpired ()
 Is maintenance period expired.
Returns
Boolean value indicating whether maintenance period have been expired for current license

 
 License ()
 License default constructor.
 
int MaintenanceDaysRemaining ()
 How many days remaining till maintenance period expires in current time zone.Days counter will be changed in local midnight. Returns int.MaxValue in case maintenance period unlimited or not specified.
 
DateTime MaintenancePeriodLocal ()
 
Returns
The DateTime when maintenance expires in UTC

 
void ReplaceFeature (LicenseFeature feature)
 
DateTime ValidityPeriodLocal ()
 
Returns
The DateTime when license expires

 

Properties

uint? ActiveUpToDateDevices [get]
 
bool AllowOverages [get, set]
 
ConsumptionPeriod ConsumptionPeriod [get]
 
DateTime CreatedAt [get]
 The DateTime of license creation.
 
List< CustomFieldCustomFields [get, set]
 Custom data fields available for the license.
 
uint? DisabledUser [get]
 
bool EnableMaintenancePeriod [get]
 
uint FloatingInUseDevices [get]
 
uint? FloatingTimeout [get, set]
 
uint FloatingUsers [get]
 
ulong Id [get]
 License id.
 
bool IsActive [get, set]
 
bool IsEnabled [get, set]
 
bool IsExpired [get, set]
 
bool IsFloating [get, set]
 Is this license floating.
 
bool IsFloatingCloud [get]
 
bool IsTrial [get, set]
 Is this license trial.
 
string LastActivationDevice [get]
 
DateTime LastCheck [get]
 
string LicenseKey [get, set]
 License key or null if not available (in case of user-based product)
 
LicenseType LicenseType [get]
 Type of license.
 
LicenseUser LicenseUser [get, set]
 
List< LicenseUserLicenseUsers [get]
 
DateTime MaintenancePeriod [get]
 Maintenance period for the license.
 
string MaintenancePeriodString [get, set]
 
uint MaxActivations [get, set]
 How many times license can be activated.
 
int? MaxConsumptions [get, set]
 Maximum consumption of the license.
 
uint MaxLicenseUsers [get]
 Maximum number of users of the license.
 
int MaxOverages [get, set]
 Extra amount of consumption that allows to go over MaxConsumption.
 
string Note [get]
 
string Order [get]
 
string OrderItem [get]
 
string OrderStoreId [get]
 A client order id that can be manually set in platform or through the SDK. Not to be confused with order id that the server generates.
 
Customer Owner [get]
 Information about license owner, commonly it's a person or organization associated with the license.
 
bool PreventVm [get]
 
Product Product [get, set]
 Information about a product this license belongs to.
 
List< LicenseFeatureProductFeatures [get]
 Product features available for the license.
 
bool ResetConsumption [get]
 
string Signature [get, set]
 
LicenseStatus Status [get]
 LicenseStatus object for this license.
 
string SubscriptionId [get]
 
DateTime TimeActivated [get]
 The DateTime of license activation.
 
DateTime TimeDisabled [get]
 The DateTime when the license was disabled.
 
uint TimesActivated [get, set]
 How many times license already been activated.
 
uint TotalActiveDevices [get]
 
int TotalConsumptions [get, set]
 Current total consumption of the license.
 
uint TransferCount [get]
 
uint TrialDays [get]
 
string TypeString [get, set]
 
DateTime UpdatedAt [get]
 The DateTime of the last license update.
 
DateTime ValidityPeriod [get]
 The DateTime until the license is valid.
 
string ValidityPeriodString [get, set]
 
- Properties inherited from LicenseSpring.ILicense

Detailed Description

License class, implements ILicense interface.

Member Function Documentation

◆ DaysRemaining()

int LicenseSpring.License.DaysRemaining ( )

How many days remaining till license expires.Days counter will be changed in midnight by UTC. 0 means license expires today.

Implements LicenseSpring.ILicense.

◆ IsMaintenancePeriodExpired()

bool LicenseSpring.License.IsMaintenancePeriodExpired ( )

Is maintenance period expired.

Returns
Boolean value indicating whether maintenance period have been expired for current license

Implements LicenseSpring.ILicense.

◆ MaintenanceDaysRemaining()

int LicenseSpring.License.MaintenanceDaysRemaining ( )

How many days remaining till maintenance period expires in current time zone.Days counter will be changed in local midnight. Returns int.MaxValue in case maintenance period unlimited or not specified.

Implements LicenseSpring.ILicense.

◆ MaintenancePeriodLocal()

DateTime LicenseSpring.License.MaintenancePeriodLocal ( )

Returns
The DateTime when maintenance expires in UTC

Implements LicenseSpring.ILicense.

◆ ValidityPeriodLocal()

DateTime LicenseSpring.License.ValidityPeriodLocal ( )

Returns
The DateTime when license expires

Implements LicenseSpring.ILicense.

Property Documentation

◆ ActiveUpToDateDevices

uint? LicenseSpring.License.ActiveUpToDateDevices
get

◆ AllowOverages

bool LicenseSpring.License.AllowOverages
getset

◆ ConsumptionPeriod

ConsumptionPeriod LicenseSpring.License.ConsumptionPeriod
get

◆ CreatedAt

DateTime LicenseSpring.License.CreatedAt
get

The DateTime of license creation.

Implements LicenseSpring.ILicense.

◆ CustomFields

List<CustomField> LicenseSpring.License.CustomFields
getset

Custom data fields available for the license.

Implements LicenseSpring.ILicense.

◆ DisabledUser

uint? LicenseSpring.License.DisabledUser
get

◆ EnableMaintenancePeriod

bool LicenseSpring.License.EnableMaintenancePeriod
get

◆ FloatingInUseDevices

uint LicenseSpring.License.FloatingInUseDevices
get

◆ FloatingTimeout

uint? LicenseSpring.License.FloatingTimeout
getset

◆ FloatingUsers

uint LicenseSpring.License.FloatingUsers
get

◆ Id

ulong LicenseSpring.License.Id
get

◆ IsFloating

bool LicenseSpring.License.IsFloating
getset

Is this license floating.

Implements LicenseSpring.ILicense.

◆ IsTrial

bool LicenseSpring.License.IsTrial
getset

Is this license trial.

Implements LicenseSpring.ILicense.

◆ LastActivationDevice

string LicenseSpring.License.LastActivationDevice
get

◆ LastCheck

DateTime LicenseSpring.License.LastCheck
get

◆ LicenseKey

string LicenseSpring.License.LicenseKey
getset

License key or null if not available (in case of user-based product)

Implements LicenseSpring.ILicense.

◆ LicenseType

LicenseType LicenseSpring.License.LicenseType
get

Type of license.

Implements LicenseSpring.ILicense.

◆ LicenseUser

LicenseUser LicenseSpring.License.LicenseUser
getset

◆ LicenseUsers

List<LicenseUser> LicenseSpring.License.LicenseUsers
get

◆ MaintenancePeriod

DateTime LicenseSpring.License.MaintenancePeriod
get

Maintenance period for the license.

Implements LicenseSpring.ILicense.

◆ MaxActivations

uint LicenseSpring.License.MaxActivations
getset

How many times license can be activated.

Implements LicenseSpring.ILicense.

◆ MaxConsumptions

int? LicenseSpring.License.MaxConsumptions
getset

Maximum consumption of the license.

Implements LicenseSpring.ILicense.

◆ MaxLicenseUsers

uint LicenseSpring.License.MaxLicenseUsers
get

Maximum number of users of the license.

Implements LicenseSpring.ILicense.

◆ MaxOverages

int LicenseSpring.License.MaxOverages
getset

Extra amount of consumption that allows to go over MaxConsumption.

Implements LicenseSpring.ILicense.

◆ Note

string LicenseSpring.License.Note
get

◆ Order

string LicenseSpring.License.Order
get

◆ OrderItem

string LicenseSpring.License.OrderItem
get

◆ OrderStoreId

string LicenseSpring.License.OrderStoreId
get

A client order id that can be manually set in platform or through the SDK. Not to be confused with order id that the server generates.

Implements LicenseSpring.ILicense.

◆ Owner

Customer LicenseSpring.License.Owner
get

Information about license owner, commonly it's a person or organization associated with the license.

Implements LicenseSpring.ILicense.

◆ PreventVm

bool LicenseSpring.License.PreventVm
get

◆ Product

Product LicenseSpring.License.Product
getset

Information about a product this license belongs to.

Implements LicenseSpring.ILicense.

◆ ProductFeatures

List<LicenseFeature> LicenseSpring.License.ProductFeatures
get

Product features available for the license.

Implements LicenseSpring.ILicense.

◆ ResetConsumption

bool LicenseSpring.License.ResetConsumption
get

◆ Status

LicenseStatus LicenseSpring.License.Status
get

LicenseStatus object for this license.

Implements LicenseSpring.ILicense.

◆ SubscriptionId

string LicenseSpring.License.SubscriptionId
get

◆ TimeActivated

DateTime LicenseSpring.License.TimeActivated
get

The DateTime of license activation.

Implements LicenseSpring.ILicense.

◆ TimeDisabled

DateTime LicenseSpring.License.TimeDisabled
get

The DateTime when the license was disabled.

Implements LicenseSpring.ILicense.

◆ TimesActivated

uint LicenseSpring.License.TimesActivated
getset

How many times license already been activated.

Implements LicenseSpring.ILicense.

◆ TotalActiveDevices

uint LicenseSpring.License.TotalActiveDevices
get

◆ TotalConsumptions

int LicenseSpring.License.TotalConsumptions
getset

Current total consumption of the license.

Implements LicenseSpring.ILicense.

◆ TransferCount

uint LicenseSpring.License.TransferCount
get

◆ TrialDays

uint LicenseSpring.License.TrialDays
get

◆ UpdatedAt

DateTime LicenseSpring.License.UpdatedAt
get

The DateTime of the last license update.

Implements LicenseSpring.ILicense.

◆ ValidityPeriod

DateTime LicenseSpring.License.ValidityPeriod
get

The DateTime until the license is valid.

Implements LicenseSpring.ILicense.


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