CodeInfo

StockSharp.Algo.Compilation

コード情報。

継承元: NotifiableObject

実装: IAsyncPersistable, IDisposable

コンストラクター

CodeInfo
public CodeInfo()
codeInfo = CodeInfo()

CodeInfo の新規インスタンスを初期化します。

プロパティ

Assembly
public byte[] Assembly { get; private set; }
value = codeInfo.Assembly
codeInfo.Assembly = value

最終組み立て。

AssemblyReferences
public IList<AssemblyReference> AssemblyReferences { get; }
value = codeInfo.AssemblyReferences

アセンブリ参照。

ExtraSources
public string[] ExtraSources { get; set; }
value = codeInfo.ExtraSources
codeInfo.ExtraSources = value

ソースコードの余分。

Id
public Guid Id { get; set; }
value = codeInfo.Id
codeInfo.Id = value

識別子。

IsCompilable
public bool IsCompilable { get; private set; }
value = codeInfo.IsCompilable
codeInfo.IsCompilable = value

コードはコンパイル可能です。

Language
public string Language { get; set; }
value = codeInfo.Language
codeInfo.Language = value

コード言語。

ModuleName
public string ModuleName { get; set; }
value = codeInfo.ModuleName
codeInfo.ModuleName = value

モジュール名。

Name
public string Name { get; set; }
value = codeInfo.Name
codeInfo.Name = value

お名前.

NuGetReferences
public IList<NuGetReference> NuGetReferences { get; }
value = codeInfo.NuGetReferences

NuGet references.

ObjectType
public Type ObjectType { get; private set; }
value = codeInfo.ObjectType
codeInfo.ObjectType = value

オブジェクトタイプ。

ProjectReferences
public IList<ICodeReference> ProjectReferences { get; }
value = codeInfo.ProjectReferences

ファイル参照。

Text
public string Text { get; set; }
value = codeInfo.Text
codeInfo.Text = value

コード。

メソッド

Compile
public IEnumerable<CompilationError> Compile(Func<Type, bool> isTypeCompatible, string typeName)
result = codeInfo.Compile(isTypeCompatible, typeName)

コンパイルコード。

isTypeCompatible
型は互換性があります。
typeName
お名前(必須)

戻り値: 担当: 佐藤 宏

CompileAsync
public Task<IEnumerable<CompilationError>> CompileAsync(Func<Type, bool> isTypeCompatible, string typeName, CancellationToken cancellationToken)
result = codeInfo.CompileAsync(isTypeCompatible, typeName, cancellationToken)

コンパイルコード。

isTypeCompatible
型は互換性があります。
typeName
お名前(必須)
cancellationToken
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏

Dispose
public void Dispose()
codeInfo.Dispose()

使い捨て可能を実装するプール内のアイテムの処分。

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = codeInfo.LoadAsync(storage, cancellationToken)

Asynchronously loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
cancellationToken
A token to monitor for cancellation requests.

戻り値: A task that represents the asynchronous load operation.

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = codeInfo.SaveAsync(storage, cancellationToken)

Asynchronously saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
cancellationToken
A token to monitor for cancellation requests.

戻り値: A task that represents the asynchronous save operation.

イベント

Compiled
public event Action Compiled
codeInfo.Compiled += handler

参加イベント