Метод | Описание | |
---|---|---|
AddRates ( string currency, string>.IDictionary |
Add a new rates topic.
|
|
ChangeRates ( string currency, string>.IDictionary |
Update and existing rates topic, replacing the rates mappings with a new set of mappings.
|
|
ChangeRates ( string currency, string jsonString, ITopicUpdaterUpdateContextCallback |
Update an existing rates topic, replacing the rates mappings with a new set of mappings specified as a JSON string, for example {"USD":"123.45","HKD":"456.3"}.
|
|
ControlClientUpdatingJSONTopics ( string serverUrl ) : System |
Constructor.
|
|
close ( ) : void |
Close the session.
|
|
removeRates ( string currency, ITopicControlRemoveContextCallback |
Remove a rates entry (remove its topic) and clear cached value for the topic.
|
Метод | Описание | |
---|---|---|
MapToJSON ( string>.IDictionary |
Convert a given map to a JSON object.
|
|
RateTopicName ( string currency ) : string |
Generate a hierarchical topic name for a rates topic. e.g. for currency=GBP would return "FX/GBP".
|
public AddRates ( string currency, string>.IDictionary |
||
currency | string | the base currency |
values | string>.IDictionary | the full map of initial rates values |
callback | ITopicControlAddContextCallback |
reports outcome |
Результат | void |
public ChangeRates ( string currency, string>.IDictionary |
||
currency | string | the base currency |
values | string>.IDictionary | the mew rates values |
callback | ITopicUpdaterUpdateContextCallback |
reports outcome |
Результат | void |
public ChangeRates ( string currency, string jsonString, ITopicUpdaterUpdateContextCallback |
||
currency | string | the base currency |
jsonString | string | a JSON string specifying the map of currency rates |
callback | ITopicUpdaterUpdateContextCallback |
reports outcome |
Результат | void |
public ControlClientUpdatingJSONTopics ( string serverUrl ) : System | ||
serverUrl | string | for example "ws://diffusion.example.com:80" |
Результат | System |
public removeRates ( string currency, ITopicControlRemoveContextCallback |
||
currency | string | the currency to be removed |
callback | ITopicControlRemoveContextCallback |
reports the outcome |
Результат | void |