CodeInfo
StockSharp.Algo.Compilation
Informação de código.
Herda de: NotifiableObject
Implementa: IAsyncPersistable, IDisposable
Construtores
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.
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.
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.
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.
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.
Retorna: 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.
Retorna: A task that represents the asynchronous save operation.