Show / Hide Table of Contents

Interface IHydraTask

Интерфейс, описывающий задачу.

Inherited Members
ILogReceiver.AddLog(LogMessage)
ILogSource.Id
ILogSource.Name
ILogSource.Parent
ILogSource.LogLevel
ILogSource.CurrentTime
ILogSource.IsRoot
ILogSource.ParentRemoved
ILogSource.Log
IScheduledTask.WorkingTime
IScheduledTask.CanStart
IScheduledTask.CanStop
Namespace: StockSharp.Hydra.Core
Assembly: StockSharp.Hydra.Core.dll
Syntax
public interface IHydraTask : ILogReceiver, ILogSource, IDisposable, ICloneable<IHydraTask>, ICloneable, IPersistable, INotifyPropertyChanged, IScheduledTask

Properties

CandlesBuildFrom

Поддерживаемые источники данных построения свечей.

Declaration
IEnumerable<Level1Fields> CandlesBuildFrom { get; }
Property Value
Type Description
IEnumerable<Level1Fields>

CanTestConnect

Можно ли вызвать метод TestConnect(Action<Exception>).

Declaration
bool CanTestConnect { get; }
Property Value
Type Description
Boolean

DependFrom

Задача, которая должна быть выполнена перед запуском текущей.

Declaration
IHydraTask DependFrom { get; set; }
Property Value
Type Description
IHydraTask

Drive

Директория с данными, куда будут сохраняться конечные файлы в формате StockSharp.

Declaration
IMarketDataDrive Drive { get; }
Property Value
Type Description
IMarketDataDrive

Icon

Адрес иконки, для визуального обозначения.

Declaration
Uri Icon { get; }
Property Value
Type Description
Uri

IsDefault

Настройки содержат значений, заданные по-умолчанию.

Declaration
bool IsDefault { get; set; }
Property Value
Type Description
Boolean

IsEnabled

Включена ли задача.

Declaration
bool IsEnabled { get; set; }
Property Value
Type Description
Boolean

Securities

Инструменты, связанные с задачей.

Declaration
IEnumerable<HydraTaskSecurity> Securities { get; set; }
Property Value
Type Description
IEnumerable<HydraTaskSecurity>

SecurityLookupSupportType

Тип поиска инструмента.

Declaration
SecurityLookupSupportTypes SecurityLookupSupportType { get; }
Property Value
Type Description
SecurityLookupSupportTypes

State

Текущее состояние задачи.

Declaration
TaskStates State { get; }
Property Value
Type Description
TaskStates

StorageFormat

Формат данных.

Declaration
StorageFormats StorageFormat { get; }
Property Value
Type Description
StorageFormats

SupportedDataTypes

Поддерживаемые типы данных.

Declaration
IEnumerable<DataType> SupportedDataTypes { get; }
Property Value
Type Description
IEnumerable<DataType>

SupportedDepths

Supported depths.

Declaration
IEnumerable<int> SupportedDepths { get; }
Property Value
Type Description
IEnumerable<Int32>

Title

Заголовок задачи.

Declaration
string Title { get; }
Property Value
Type Description
String

Methods

Init(Guid)

Инициализировать задачу.

Declaration
void Init(Guid id)
Parameters
Type Name Description
Guid id

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

IsAllDownloadingSupported(DataType)

Is for the specified dataType all securities downloading enabled.

Declaration
bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type Name Description
DataType dataType

Data type info.

Returns
Type Description
Boolean

Check result.

Refresh(ISecurityStorage, SecurityLookupMessage, Action<Security>, Func<Boolean>)

Download new securities.

Declaration
void Refresh(ISecurityStorage securityStorage, SecurityLookupMessage criteria, Action<Security> newSecurity, Func<bool> isCancelled)
Parameters
Type Name Description
ISecurityStorage securityStorage

Securities meta info storage.

SecurityLookupMessage criteria

Message security lookup for specified criteria.

Action<Security> newSecurity

The handler through which a new instrument will be passed.

Func<Boolean> isCancelled

The handler which returns an attribute of search cancel.

Start()

Запустить.

Declaration
void Start()

Stop()

Остановить.

Declaration
void Stop()

TestConnect(Action<Exception>)

Произвести тестовое подключение.

Declaration
void TestConnect(Action<Exception> connectionChanged)
Parameters
Type Name Description
Action<Exception> connectionChanged

Обработчик изменения состояния подключения.

Events

DataLoaded

Событие о загрузке маркет-данных.

Declaration
event Action<Security, DataType, Nullable<DateTimeOffset>, int, IEnumerable<Message>> DataLoaded
Event Type
Type Description
Action<Security, DataType, Nullable<DateTimeOffset>, Int32, IEnumerable<Message>>

Started

Событие запуска.

Declaration
event Action<IHydraTask> Started
Event Type
Type Description
Action<IHydraTask>

Stopped

Событие остановки.

Declaration
event Action<IHydraTask> Stopped
Event Type
Type Description
Action<IHydraTask>

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
Extensions.GetAllSecurity(IHydraTask)
Extensions.ToHydraSecurities(IHydraTask, IEnumerable<Security>)
Extensions.GetDisplayName(IHydraTask)
Extensions.GetDescription(IHydraTask)
Extensions.IsCategoryOf(IHydraTask, MessageAdapterCategories)
Extensions.ToTaskSecurity(IHydraTask, Security)
Extensions.SaveSettings(IHydraTask)
Extensions.UpdateSecurity(IHydraTask, HydraTaskSecurity)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾