Interface ILicenseClient
The interface describing a client for access to licenses.
Namespace: StockSharp.Community
Assembly: StockSharp.Studio.Community.dll
Syntax
public interface ILicenseClient
Methods
AddFeatures(IEnumerable<String>)
Create new features.
Declaration
IEnumerable<long> AddFeatures(IEnumerable<string> features)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | features | License features. |
Returns
Type | Description |
---|---|
IEnumerable<Int64> | Identifiers. |
DeleteLicense(Int64)
Delete license.
Declaration
void DeleteLicense(long licenseId)
Parameters
Type | Name | Description |
---|---|---|
Int64 | licenseId | Идентификатор лицензии. |
FindFeatures(Boolean)
Find license features.
Declaration
IEnumerable<(long, string)> FindFeatures(bool onlyOwn)
Parameters
Type | Name | Description |
---|---|---|
Boolean | onlyOwn | Only own. |
Returns
Type | Description |
---|---|
IEnumerable<(, )<Int64, String>> | License features. |
FindLicenses(String, String)
Find licenses.
Declaration
IEnumerable<LicenseInfoMessage> FindLicenses(string platform, string hardwareId)
Parameters
Type | Name | Description |
---|---|---|
String | platform | Платформа. |
String | hardwareId | Уникальная информация о компьютере. |
Returns
Type | Description |
---|---|
IEnumerable<LicenseInfoMessage> | Licenses. |
RenewLicense(Int64)
Обновить лицензию.
Declaration
LicenseInfoMessage RenewLicense(long licenseId)
Parameters
Type | Name | Description |
---|---|---|
Int64 | licenseId | Старая лицензия. |
Returns
Type | Description |
---|---|
LicenseInfoMessage | Обновленная лицензия. |
RequestLicense(Int64, String, String, String, Nullable<DateTimeOffset>)
Request license.
Declaration
LicenseInfoMessage RequestLicense(long issuedTo, string account, string hardwareId, string features, Nullable<DateTimeOffset> expirationDate)
Parameters
Type | Name | Description |
---|---|---|
Int64 | issuedTo | Имя владельца лицензии. |
String | account | Номер счета. |
String | hardwareId | Уникальная информация о компьютере. |
String | features | Список функциональности, которую необходимо добавить в лицензию. |
Nullable<DateTimeOffset> | expirationDate | Дата окончания действия лицензии. |
Returns
Type | Description |
---|---|
LicenseInfoMessage | License. |