Class HydraStorage
Hydra tasks settings storage.
Namespace: StockSharp.Hydra.Core
Assembly: StockSharp.Hydra.Core.dll
Syntax
public class HydraStorage : Object
Constructors
HydraStorage(String)
Создать HydraStorage.
Declaration
public HydraStorage(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Путь к хранилищу. |
Properties
DelayAction
Отложенное действие.
Declaration
public DelayAction DelayAction { get; set; }
Property Value
Type | Description |
---|---|
Ecng.Serialization.DelayAction |
Methods
Add(Guid, IEnumerable<HydraTaskSecurity>)
Add securities into the task.
Declaration
public void Add(Guid taskId, IEnumerable<HydraTaskSecurity> securities)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | Task id. |
IEnumerable<HydraTaskSecurity> | securities | Securities. |
Delete(Guid)
Delete task settings.
Declaration
public void Delete(Guid taskId)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | Task id. |
Delete(Guid, IEnumerable<HydraTaskSecurity>)
Delete securities from the task.
Declaration
public void Delete(Guid taskId, IEnumerable<HydraTaskSecurity> securities)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | Task id. |
IEnumerable<HydraTaskSecurity> | securities | Securities. |
DeleteAll(Guid)
Delete all securities from the task.
Declaration
public void DeleteAll(Guid taskId)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | Task id. |
Init()
Инициализировать хранилище.
Declaration
public void Init()
Load(ILogReceiver)
Load all tasks.
Declaration
public IDictionary<HydraTaskInfo, IEnumerable<HydraTaskSecurity>> Load(ILogReceiver logs)
Parameters
Type | Name | Description |
---|---|---|
ILogReceiver | logs | Logs. |
Returns
Type | Description |
---|---|
IDictionary<HydraTaskInfo, IEnumerable<HydraTaskSecurity>> | Tasks. |
Reset()
Reset all settings.
Declaration
public void Reset()
Save(HydraTaskInfo)
Update task settings.
Declaration
public void Save(HydraTaskInfo info)
Parameters
Type | Name | Description |
---|---|---|
HydraTaskInfo | info | Task settings. |
Update(Guid, IEnumerable<HydraTaskSecurity>)
Update securities info.
Declaration
public void Update(Guid taskId, IEnumerable<HydraTaskSecurity> securities)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskId | Task id. |
IEnumerable<HydraTaskSecurity> | securities | Securities. |