CodeInfo

StockSharp.Algo.Compilation

Información de código.

Hereda de: NotifiableObject

Implementa: IAsyncPersistable, IDisposable

Constructores

CodeInfo
public CodeInfo()
codeInfo = CodeInfo()

Inicia una nueva instancia de la CodeInfo.

Propiedades

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

Última asamblea construida.

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

Referencias de la Asamblea.

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

Códigos de fuente 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

El código es compilable.

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

Lenguaje de código.

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

Nombre del módulo.

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

Nombre.

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

Referencias de archivo.

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)

Código de compilación.

isTypeCompatible
Es compatible con el tipo.
typeName
Nombre de tipo.

Devuelve: CompilationResult

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

Código de compilación.

isTypeCompatible
Es compatible con el tipo.
typeName
Nombre de tipo.
cancellationToken
CancellationToken

Devuelve: CompilationResult

Dispose
public void Dispose()
codeInfo.Dispose()

Desembolsos de elementos en la piscina que implementan IDesechable.

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.

Devuelve: 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.

Devuelve: A task that represents the asynchronous save operation.

Eventos

Compiled
public event Action Compiled
codeInfo.Compiled += handler

Evento completado.