Table of Contents

Class CodeInfo

Namespace
StockSharp.Algo.Compilation
Assembly
StockSharp.Algo.dll

Code info.

public class CodeInfo : NotifiableObject, INotifyPropertyChangedEx, INotifyPropertyChanged, INotifyPropertyChanging, IPersistable, IDisposable
Inheritance
CodeInfo
Implements
Inherited Members
Extension Methods

Constructors

CodeInfo()

Initializes a new instance of the CodeInfo.

public CodeInfo()

Properties

Assembly

Last built assembly.

public byte[] Assembly { get; }

Property Value

byte[]

AssemblyReferences

Assembly references.

public IList<AssemblyReference> AssemblyReferences { get; }

Property Value

IList<AssemblyReference>

ExtraSources

Extra source codes.

public string[] ExtraSources { get; set; }

Property Value

string[]

Id

Identifier.

public Guid Id { get; set; }

Property Value

Guid

IsCompilable

The code is compilable.

public bool IsCompilable { get; }

Property Value

bool

Language

Code language.

public string Language { get; set; }

Property Value

string

ModuleName

Module name.

public string ModuleName { get; set; }

Property Value

string

Name

Name.

public string Name { get; set; }

Property Value

string

NuGetReferences

NuGet references.

public IList<NuGetReference> NuGetReferences { get; }

Property Value

IList<NuGetReference>

ObjectType

Object type.

public Type ObjectType { get; }

Property Value

Type

ProjectReferences

File references.

public IList<ICodeReference> ProjectReferences { get; }

Property Value

IList<ICodeReference>

Text

Code.

public string Text { get; set; }

Property Value

string

Methods

Compile(Func<Type, bool>, string)

Compile code.

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

Parameters

isTypeCompatible Func<Type, bool>

Is type compatible.

typeName string

Type name.

Returns

IEnumerable<CompilationError>

CompilationResult

CompileAsync(Func<Type, bool>, string, CancellationToken)

Compile code.

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

Parameters

isTypeCompatible Func<Type, bool>

Is type compatible.

typeName string

Type name.

cancellationToken CancellationToken

CancellationToken

Returns

Task<IEnumerable<CompilationError>>

CompilationResult

Dispose()

public void Dispose()

Load(SettingsStorage)

Loads the state of the object from the specified SettingsStorage.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

The SettingsStorage instance from which to load the data.

Save(SettingsStorage)

Saves the state of the object to the specified SettingsStorage.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

The SettingsStorage instance to which to save the data.

Events

Compiled

Compiled event.

public event Action Compiled

Event Type

Action