CodeInfo

StockSharp.Algo.Compilation

Informação de código.

Herda de: NotifiableObject

Implementa: IPersistable, IDisposable

Construtores

CodeInfo
public CodeInfo()
codeInfo = CodeInfo()

Inicializa uma nova instância do CodeInfo.

Propriedades

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

Última montagem construída.

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

Referências à Assembleia.

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

Códigos de origem extra.

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

Identificador.

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

O código é complicável.

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

Linguagem de código.

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

Nome do módulo.

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

Nome.

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

NuGet references.

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

Tipo de objeto.

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

Referências de ficheiros.

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

Código.

Métodos

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

Compilar código.

isTypeCompatible
É compatível com o tipo.
typeName
Nome do tipo.

Retorna: CompilationResult

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

Compilar código.

isTypeCompatible
É compatível com o tipo.
typeName
Nome do tipo.
cancellationToken
CancellationToken

Retorna: CompilationResult

Dispose
public void Dispose()
codeInfo.Dispose()

Elimina os itens na piscina que implementam IDesposable.

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

Carregar as configurações.

storage
Configuração do armazenamento.
Save
public void Save(SettingsStorage storage)
codeInfo.Save(storage)

Gravar as definições.

storage
Configuração do armazenamento.

Eventos

Compiled
public event Action Compiled
codeInfo.Compiled += handler

Evento compilado.