Table of Contents

Class HydraTaskManager

Namespace
StockSharp.Hydra.Core
Assembly
StockSharp.Hydra.Core.dll

Task manager.

public class HydraTaskManager
Inheritance
HydraTaskManager
Inherited Members
Extension Methods

Properties

AvailableTasks

All available tasks.

public Type[] AvailableTasks { get; }

Property Value

Type[]

Instance

Instance.

public static HydraTaskManager Instance { get; }

Property Value

HydraTaskManager

SecurityStorage

public HydraSecurityStorage SecurityStorage { get; }

Property Value

HydraSecurityStorage

Settings

All created settings.

public IEnumerable<HydraTaskInfo> Settings { get; }

Property Value

IEnumerable<HydraTaskInfo>

Tasks

All created tasks.

public IEnumerable<IHydraTask> Tasks { get; }

Property Value

IEnumerable<IHydraTask>

Methods

Create(IEnumerable<Type>)

Create task instances for the specified types.

public IEnumerable<IHydraTask> Create(IEnumerable<Type> taskTypes)

Parameters

taskTypes IEnumerable<Type>

Task types.

Returns

IEnumerable<IHydraTask>

Tasks.

Delete(Security)

Remove security.

public void Delete(Security security)

Parameters

security Security

Security.

Delete(Security[])

Remove securities.

public void Delete(Security[] securities)

Parameters

securities Security[]

Securities.

Delete(IHydraTask)

Delete the task.

public void Delete(IHydraTask task)

Parameters

task IHydraTask

Task.

Delete(IHydraTask, HydraTaskSecurity)

Remove the specified security from the task.

public void Delete(IHydraTask task, HydraTaskSecurity security)

Parameters

task IHydraTask

Task.

security HydraTaskSecurity

Security.

Delete(IHydraTask, HydraTaskSecurity[])

Remove the specified securities from the task.

public void Delete(IHydraTask task, HydraTaskSecurity[] securities)

Parameters

task IHydraTask

Task.

securities HydraTaskSecurity[]

Securities.

DeleteAll(IHydraTask)

Remove all securities from the task.

public void DeleteAll(IHydraTask task)

Parameters

task IHydraTask

Task.

Init(IEnumerable<Type>, Func<string, Type>, CancellationToken)

Initialize the storage.

public Task Init(IEnumerable<Type> adapters, Func<string, Type> migration, CancellationToken cancellationToken)

Parameters

adapters IEnumerable<Type>

All available adapters.

migration Func<string, Type>
cancellationToken CancellationToken

CancellationToken

Returns

Task

Task

Reset()

Reset data.

public void Reset()

Save(IHydraTask)

Add or update the task.

public void Save(IHydraTask task)

Parameters

task IHydraTask

Task.

Save(IHydraTask, HydraTaskSecurity)

Add or update the specified security into the task.

public void Save(IHydraTask task, HydraTaskSecurity security)

Parameters

task IHydraTask

Task.

security HydraTaskSecurity

Security.

Save(IHydraTask, HydraTaskSecurity[])

Add or update the specified security into the task.

public void Save(IHydraTask task, HydraTaskSecurity[] securities)

Parameters

task IHydraTask

Task.

securities HydraTaskSecurity[]

Securities.

Events

SecuritiesAdded

Securities added event.

public event Action<IHydraTask, IEnumerable<HydraTaskSecurity>> SecuritiesAdded

Event Type

Action<IHydraTask, IEnumerable<HydraTaskSecurity>>

SecuritiesRemoved

Securities removed event.

public event Action<IHydraTask, IEnumerable<HydraTaskSecurity>, bool> SecuritiesRemoved

Event Type

Action<IHydraTask, IEnumerable<HydraTaskSecurity>, bool>

TaskAdded

Task added event.

public event Action<IHydraTask> TaskAdded

Event Type

Action<IHydraTask>

TaskRemoved

Task removed event.

public event Action<IHydraTask> TaskRemoved

Event Type

Action<IHydraTask>