CodeInfo

StockSharp.Algo.Compilation

Code-Info.

Erbt von: NotifiableObject

Implementiert: IAsyncPersistable, IDisposable

Konstruktoren

CodeInfo
public CodeInfo()
codeInfo = CodeInfo()

Initialisiert eine neue Instanz von CodeInfo.

Eigenschaften

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

Letzte gebaute Versammlung.

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

Montagereferenzen.

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

Extra-Quellcodes.

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

Kennung.

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

Der Code ist kompilierbar.

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

Codesprache.

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

Modulbezeichnung.

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

Name.

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

NuGet Referenzen.

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

Objektart.

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

Referenzdaten.

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

Code.

Methoden

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

Compile Code.

isTypeCompatible
Typ kompatibel ist.
typeName
Typbezeichnung.

Rückgabe: CompilationResult

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

Compile Code.

isTypeCompatible
Typ kompatibel ist.
typeName
Typbezeichnung.
cancellationToken
CancellationToken

Rückgabe: CompilationResult

Dispose
public void Dispose()
codeInfo.Dispose()

Entsorgt Elemente im Pool, die IDisposable implementieren.

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.

Rückgabe: 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.

Rückgabe: A task that represents the asynchronous save operation.

Ereignisse

Compiled
public event Action Compiled
codeInfo.Compiled += handler

Zusammengestelltes Ereignis.