CodeInfo

StockSharp.Algo.Compilation

Информация о коде.

Наследует: NotifiableObject

Реализует: IPersistable, IDisposable

Конструкторы

CodeInfo
public CodeInfo()
codeInfo = CodeInfo()

Инициализирует новый экземпляр CodeInfo.

Свойства

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

Последняя построенная сборка.

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

Ссылки на сборку.

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

Дополнительные исходные коды.

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

Идентификатор.

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

Код компилируемый.

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

Язык кода.

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

Имя модуля.

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

Имя.

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

NuGet references.

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

Тип объекта.

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

Ссылки на файлы.

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

Код.

Методы

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

Скомпилируйте код.

isTypeCompatible
Совместим ли тип.
typeName
Введите имя.

Возвращает: CompilationResult

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

Скомпилируйте код.

isTypeCompatible
Совместим ли тип.
typeName
Введите имя.
cancellationToken
CancellationToken

Возвращает: CompilationResult

Dispose
public void Dispose()
codeInfo.Dispose()

Удаляет элементы в пуле, реализующие IDisposable.

Load
public void Load(SettingsStorage storage)
codeInfo.Load(storage)

Загрузить настройки.

storage
Хранилище настроек.
Save
public void Save(SettingsStorage storage)
codeInfo.Save(storage)

Сохраните настройки.

storage
Хранилище настроек.

События

Compiled
public event Action Compiled
codeInfo.Compiled += handler

Скомпилированное событие.