Table of Contents

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

CachedSynchronizedDictionary<DataType, HydraTaskSecurity.DataTypeInfo>

Security

Trading security.

public Security Security { get; set; }

Property Value

Security

Methods

AddDataType(DataType)

Adds the specified data type with default info (not hidden).

public HydraTaskSecurity.DataTypeInfo AddDataType(DataType dataType)

Parameters

dataType DataType

Returns

HydraTaskSecurity.DataTypeInfo

Enabled(DataType)

Returns whether the specified data type is enabled and visible.

public bool Enabled(DataType dataType)

Parameters

dataType DataType

Returns

bool

GetDataInfo()

Returns visible and enabled data type infos.

public IEnumerable<HydraTaskSecurity.DataTypeInfo> GetDataInfo()

Returns

IEnumerable<HydraTaskSecurity.DataTypeInfo>

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

visibleOnly bool
enabledOnly bool

Returns

IEnumerable<KeyValuePair<DataType, HydraTaskSecurity.DataTypeInfo>>

GetDataTypes()

Returns visible and enabled data types.

public IEnumerable<DataType> GetDataTypes()

Returns

IEnumerable<DataType>

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

Returns

bool