|
Infront Data Manager Connect Client (.NET)
|
Inherits Gevasys.DataCore.Client.PushClient, and Gevasys.DataCore.Tools.Cache.IPriceCacheAccess.
Public Member Functions | |
| PriceCache (string configDir, string configFilename, string name, string user, string password, string configurationName, TimeSpan lifeTime) | |
| PriceCache (ConfigurationHelper configHelper, string configDir, string configFilename, string name, string user, string password, string configurationName, TimeSpan lifeTime) | |
| override void | ProcessUpdates (List< UpdateMessage > updates) |
| override void | Update (IConsumer source, ConsumerStateChangedEventArgs arg) |
| Method for processing incoming status notifications for a Consumer. More... | |
| Dictionary< short, FieldData > | GetValuesForInstrument (string instrument, bool useRecap, out bool instrumentNotAvailable) |
| Gets all field values for a instrument. More... | |
| Dictionary< string, Dictionary< short, FieldData > > | GetValuesForInstruments (List< string > instruments, bool useRecap) |
| void | RequestRecap (string instrument) |
| Request a recap for a instrument. More... | |
| void | RequestRecaps (List< string > instruments) |
| Request recaps for a list of instruments. More... | |
| void | RequestUpdate (string instrument) |
| Request updates for a instrument. More... | |
| void | RequestUpdates (List< string > instruments) |
| Request updates for a list of instruments. More... | |
| void | StopCache () |
| Stops this cache. More... | |
Public Member Functions inherited from Gevasys.DataCore.Client.PushClient | |
| long | GetCountUpdates () |
| String | GetName () |
| void | Start () |
| void | AddNewData (List< UpdateMessage > newUpdates) |
| void | Run () |
| For internal use only. More... | |
| void | Stop () |
| abstract void | Update (DataCore.Core.IConsumer source, ConsumerStateChangedEventArgs arg) |
| Abstract method that must be implemented in derived classes to recive status notifications for the underlying consumers. More... | |
Properties | |
| bool | IsPriceServiceOnline [get] |
| Indicates if the price service is online More... | |
| static PriceCache | Instance [get] |
| Gets a instance of the price cache for use with static design pattern. Before using this method be sure to cerate first a instance of PriceCache More... | |
| bool | IsAutoRequestUnknownInstruments [get] |
| If true, unknown instruments will be requested automatically More... | |
| TimeSpan | InstrumentLifeTime [get] |
| Gets the lifetime for instruments. If a instrument is not requested from the cache for the given period, the instrument is automatically unsubscribed. More... | |
Properties inherited from Gevasys.DataCore.Client.PushClient | |
| string | Name [get] |
| Name of the push client. The name is also used as the name of the push client thread to make identifying your thread during debugging easier. More... | |
Events | |
| UpdateReceivedDelegate | OnUpdate |
| Event for incoming update.Event will fire asynchronously. More... | |
| RecapReceivedDelegate | OnRecap |
| Event for incoming recap.Event will fire asynchronously. More... | |
| NotFoundDelegate | OnNotFound |
| Event for not found instrument.Event will fire asynchronously. More... | |
| NotPermissionedDelegate | OnNotPermissioned |
| Event for not permissioned instrument. Event will fire asynchronously. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Gevasys.DataCore.Client.PushClient | |
| PushClient (String name) | |
Provides a cache for incoming streaming price data. Provides addtionally the following calculated field (calculated on each update) for each instrument, regardless of the type of the instrument:
- Last Price (FIELDID_LAST_PRICE)
- Date of Last Price (FIELDID_LAST_DATE)
- Time of Last Price (FIELDID_LAST_TIME)
- Last Change (FIELDID_LAST_CHANGE)
- Last Change in Percent(FIELDID_LAST_CHANGE_PERCENT)
- Last Date and Time of last update(FIELDID_LAST_DATETIME)
Access to fields is thread safe.
|
inline |
| configDir | Directory of the configuration file |
| configFilename | Name of the configuration file |
| name | Name of this instance |
| user | User |
| password | Password |
| configurationName | Name of the ConsumerStore in the configuration file that this instance will be attached to |
| lifeTime | Instrument liefe time |
|
inline |
| configHelper | Instance of a ConfigurationHelper |
| configDir | Directory of the configuration file |
| configFilename | Name of the configuration file |
| name | Name of this instance |
| user | User |
| password | Password |
| configurationName | Name of the ConsumerStore in the configuration file that this instance will be attached to |
| lifeTime | Instrument liefe time |
|
inline |
Gets all field values for a instrument.
| instrument | vwd code |
| useRecap | Use recap for automatic requesting |
| instrumentNotAvailable | True, if the instrument is not available |
|
inlinevirtual |
Abstract method which must be overridden in derived classes. This is the
entry point for user specific code for processing updates.
Implements Gevasys.DataCore.Client.PushClient.
|
inline |
Request a recap for a instrument.
| instrument |
|
inline |
Request recaps for a list of instruments.
| instruments |
|
inline |
Request updates for a instrument.
| instrument |
|
inline |
Request updates for a list of instruments.
| instruments |
|
inline |
Stops this cache.
|
inline |
Method for processing incoming status notifications for a Consumer.
| source | The IConsumer source. |
| arg | The notification. |
Implements Gevasys.DataCore.Client.IPushClient.
|
staticget |
Gets a instance of the price cache for use with static design pattern. Before using this method be sure to cerate first a instance of PriceCache
|
get |
Gets the lifetime for instruments. If a instrument is not requested from the cache for the given period, the instrument is automatically unsubscribed.
|
get |
If true, unknown instruments will be requested automatically
|
get |
Indicates if the price service is online
| NotFoundDelegate Gevasys.DataCore.Tools.Cache.PriceCache.OnNotFound |
Event for not found instrument.Event will fire asynchronously.
| NotPermissionedDelegate Gevasys.DataCore.Tools.Cache.PriceCache.OnNotPermissioned |
Event for not permissioned instrument. Event will fire asynchronously.
| RecapReceivedDelegate Gevasys.DataCore.Tools.Cache.PriceCache.OnRecap |
Event for incoming recap.Event will fire asynchronously.
| UpdateReceivedDelegate Gevasys.DataCore.Tools.Cache.PriceCache.OnUpdate |
Event for incoming update.Event will fire asynchronously.
Copyright (C) 2021 Infront Financial Technology GmbH
Mainzer Landstrasse 178 – 190
60327 Frankfurt am Main
Infront Data Manager Connect V4.1