CodeInfo

StockSharp.Algo.Compilation

代码信息.

继承自: NotifiableObject

实现: IPersistable, 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 参考.

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
类型名称。

返回值: CompilationResult

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

编译码.

isTypeCompatible
类型兼容 。
typeName
类型名称。
cancellationToken
CancellationToken

返回值: CompilationResult

Dispose
public void Dispose()
codeInfo.Dispose()

执行可处理的池中项目的处置。

Load
public void Load(SettingsStorage storage)
codeInfo.Load(storage)

装入设置 。

storage
设置存储 。
Save
public void Save(SettingsStorage storage)
codeInfo.Save(storage)

保存设置 。

storage
设置存储 。

事件

Compiled
public event Action Compiled
codeInfo.Compiled += handler

编译事件.