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
SecurityStorage
public HydraSecurityStorage SecurityStorage { get; }
Property Value
Settings
All created settings.
public IEnumerable<HydraTaskInfo> Settings { get; }
Property Value
Tasks
All created tasks.
public IEnumerable<IHydraTask> Tasks { get; }
Property Value
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
SecuritySecurity.
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
IHydraTaskTask.
Delete(IHydraTask, HydraTaskSecurity)
Remove the specified security from the task.
public void Delete(IHydraTask task, HydraTaskSecurity security)
Parameters
task
IHydraTaskTask.
security
HydraTaskSecuritySecurity.
Delete(IHydraTask, HydraTaskSecurity[])
Remove the specified securities from the task.
public void Delete(IHydraTask task, HydraTaskSecurity[] securities)
Parameters
task
IHydraTaskTask.
securities
HydraTaskSecurity[]Securities.
DeleteAll(IHydraTask)
Remove all securities from the task.
public void DeleteAll(IHydraTask task)
Parameters
task
IHydraTaskTask.
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
Returns
Reset()
Reset data.
public void Reset()
Save(IHydraTask)
Add or update the task.
public void Save(IHydraTask task)
Parameters
task
IHydraTaskTask.
Save(IHydraTask, HydraTaskSecurity)
Add or update the specified security into the task.
public void Save(IHydraTask task, HydraTaskSecurity security)
Parameters
task
IHydraTaskTask.
security
HydraTaskSecuritySecurity.
Save(IHydraTask, HydraTaskSecurity[])
Add or update the specified security into the task.
public void Save(IHydraTask task, HydraTaskSecurity[] securities)
Parameters
task
IHydraTaskTask.
securities
HydraTaskSecurity[]Securities.
Events
SecuritiesAdded
Securities added event.
public event Action<IHydraTask, IEnumerable<HydraTaskSecurity>> SecuritiesAdded
Event Type
SecuritiesRemoved
Securities removed event.
public event Action<IHydraTask, IEnumerable<HydraTaskSecurity>, bool> SecuritiesRemoved
Event Type
TaskAdded
Task added event.
public event Action<IHydraTask> TaskAdded
Event Type
TaskRemoved
Task removed event.
public event Action<IHydraTask> TaskRemoved