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
ExtraSources
Extra source codes.
public string[] ExtraSources { get; set; }
Property Value
- string[]
Id
Identifier.
public Guid Id { get; set; }
Property Value
IsCompilable
The code is compilable.
public bool IsCompilable { get; }
Property Value
Language
Code language.
public string Language { get; set; }
Property Value
ModuleName
Module name.
public string ModuleName { get; set; }
Property Value
Name
Name.
public string Name { get; set; }
Property Value
NuGetReferences
NuGet references.
public IList<NuGetReference> NuGetReferences { get; }
Property Value
ObjectType
Object type.
public Type ObjectType { get; }
Property Value
ProjectReferences
File references.
public IList<ICodeReference> ProjectReferences { get; }
Property Value
Text
Code.
public string Text { get; set; }
Property Value
Methods
Compile(Func<Type, bool>, string)
Compile code.
public IEnumerable<CompilationError> Compile(Func<Type, bool> isTypeCompatible = null, string typeName = null)
Parameters
Returns
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
stringType name.
cancellationToken
CancellationToken
Returns
Dispose()
public void Dispose()
Load(SettingsStorage)
Loads the state of the object from the specified SettingsStorage.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageThe 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
SettingsStorageThe SettingsStorage instance to which to save the data.
Events
Compiled
Compiled event.
public event Action Compiled