Show / Hide Table of Contents

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

License id.

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

Platform.

String hardwareId

Hardware id.

Returns
Type Description
IEnumerable<LicenseInfoMessage>

Licenses.

RenewLicense(Int64)

Renew license.

Declaration
LicenseInfoMessage RenewLicense(long licenseId)
Parameters
Type Name Description
Int64 licenseId

Old license.

Returns
Type Description
LicenseInfoMessage

Renewed license.

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

License owner name.

String account

Account number.

String hardwareId

Hardware id.

String features

List of features to be added to the license.

Nullable<DateTimeOffset> expirationDate

License expiry date.

Returns
Type Description
LicenseInfoMessage

License.

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾