Class HydraTaskSecurity
- Namespace
- StockSharp.Hydra.Core
- Assembly
- StockSharp.Hydra.Core.dll
Security associated with IHydraTask.
public class HydraTaskSecurity : NotifiableObject, INotifyPropertyChangedEx, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
HydraTaskSecurity
- Implements
- Inherited Members
- Extension Methods
Constructors
HydraTaskSecurity()
Initializes a new instance of the HydraTaskSecurity.
public HydraTaskSecurity()
Properties
InfoDict
Per-data-type settings for this security.
public CachedSynchronizedDictionary<DataType, HydraTaskSecurity.DataTypeInfo> InfoDict { get; }
Property Value
Security
Trading security.
public Security Security { get; set; }
Property Value
Methods
AddDataType(DataType)
Adds the specified data type with default info (not hidden).
public HydraTaskSecurity.DataTypeInfo AddDataType(DataType dataType)
Parameters
dataType
DataType
Returns
Enabled(DataType)
Returns whether the specified data type is enabled and visible.
public bool Enabled(DataType dataType)
Parameters
dataType
DataType
Returns
GetDataInfo()
Returns visible and enabled data type infos.
public IEnumerable<HydraTaskSecurity.DataTypeInfo> GetDataInfo()
Returns
GetDataTypeInfos(bool, bool)
Returns visible and/or enabled data type pairs.
public IEnumerable<KeyValuePair<DataType, HydraTaskSecurity.DataTypeInfo>> GetDataTypeInfos(bool visibleOnly = true, bool enabledOnly = true)
Parameters
Returns
GetDataTypes()
Returns visible and enabled data types.
public IEnumerable<DataType> GetDataTypes()
Returns
RemoveDataType(DataType)
Marks the specified data type as hidden.
public void RemoveDataType(DataType dataType)
Parameters
dataType
DataType
ToString()
Get string representation.
public override string ToString()
Returns
- string
String representation.
Visible(DataType)
Returns whether the specified data type is visible.
public bool Visible(DataType dataType)
Parameters
dataType
DataType