LicenseHelper

StockSharp.Licensing

ライセンスの拡張クラス。

プロパティ

CurrentPlatform
public static OSPlatform CurrentPlatform { get; }
value = LicenseHelper.CurrentPlatform

現在のプラットフォーム。

Licenses
public static IEnumerable<License> Licenses { get; }
value = LicenseHelper.Licenses

ライセンスの入手

メソッド

GetTimestampedType
public static Type GetTimestampedType(DateTime assemblyTimestamp)
result = LicenseHelper.GetTimestampedType(assemblyTimestamp)

特定のタイムスタンプで偽型タイプを取得します。

Remove
public static void Remove(License license)
LicenseHelper.Remove(license)

ライセンスの削除

license
ライセンス
Save
public static string Save(License license)
result = LicenseHelper.Save(license)

ローカルディスク上のライセンスを保存します。

license
ライセンス

戻り値: ファイル名。

Save
public static string Save(License license, string path)
result = LicenseHelper.Save(license, path)

ローカルディスク上のライセンスを保存します。

license
ライセンス
path
宛先フォルダ。

戻り値: ファイル名。

ValidateLicense
public static string ValidateLicense(string featureName, string portfolioName, Type component)
result = LicenseHelper.ValidateLicense(featureName, portfolioName, component)

ライセンスがサポートされている機能を確認してください。

featureName
機能。
portfolioName
認証に利用される口座番号。
component
コンポーネント。

戻り値: ライセンスが機能をサポートしていない場合、エラー情報。

ValidateLicense2Async
public static ValueTask<ValueTuple<string, License>> ValidateLicense2Async(string featureName, string portfolioName, Type component, CancellationToken cancellationToken)
result = LicenseHelper.ValidateLicense2Async(featureName, portfolioName, component, cancellationToken)

ライセンスがサポートされている機能を確認してください。

featureName
機能。
portfolioName
認証に利用される口座番号。
component
コンポーネント。
cancellationToken
代表取締役社長 佐藤 浩

戻り値: ライセンスが機能をサポートしていない場合、エラー情報。

ValidateLicenseAsync
public static ValueTask<string> ValidateLicenseAsync(string featureName, string portfolioName, Type component, CancellationToken cancellationToken)
result = LicenseHelper.ValidateLicenseAsync(featureName, portfolioName, component, cancellationToken)

ライセンスがサポートされている機能を確認してください。

featureName
機能。
portfolioName
認証に利用される口座番号。
component
コンポーネント。
cancellationToken
代表取締役社長 佐藤 浩

戻り値: ライセンスが機能をサポートしていない場合、エラー情報。

イベント

LicenseError
public static event Action<License, string> LicenseError
LicenseHelper.LicenseError += handler

ライセンス認証エラーイベント。

LicensesChanged
public static event Action LicensesChanged
LicenseHelper.LicensesChanged += handler

ライセンス変更イベント

フィールド

ExcludeCurrentDirectory
public static bool ExcludeCurrentDirectory
value = LicenseHelper.ExcludeCurrentDirectory

利用可能なライセンスをスキャンするための現在のディレクトリを除外します。

RenewOffset
public static readonly TimeSpan RenewOffset
value = LicenseHelper.RenewOffset

更新できる日付は、現在のライセンスの有効期限からオフセットします。デフォルトは2日間です。

SpecialSplitter
public const string SpecialSplitter
value = LicenseHelper.SpecialSplitter

口座番号の分離のために「!!!」の特別な組み合わせ。