CodeInfo

StockSharp.Algo.Compilation

Code info.

继承自: NotifiableObject

实现: IPersistable, IDisposable

构造函数

CodeInfo()

Initializes a new instance of the CodeInfo.

属性

Assembly : byte[]

Last built assembly.

AssemblyReferences : IList<AssemblyReference>

Assembly references.

ExtraSources : string[]

Extra source codes.

Id : Guid

Identifier.

IsCompilable : bool

The code is compilable.

Language : string

Code language.

ModuleName : string

Module name.

Name : string

Name.

NuGetReferences : IList<NuGetReference>

NuGet references.

ObjectType : Type

Object type.

ProjectReferences : IList<ICodeReference>

File references.

Text : string

Code.

方法

Compile(Func<Type, bool>, string) : IEnumerable<CompilationError>

Compile code.

isTypeCompatible
Is type compatible.
typeName
Type name.

返回值: CompilationResult

CompileAsync(Func<Type, bool>, string, CancellationToken) : Task<IEnumerable<CompilationError>>

Compile code.

isTypeCompatible
Is type compatible.
typeName
Type name.
cancellationToken
CancellationToken

返回值: CompilationResult

Dispose()

Disposes of items in the pool that implement IDisposable.

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Save(SettingsStorage)

Save settings.

storage
Settings storage.

事件

Compiled : Action

Compiled event.