Ejemplo n.º 1
0
        /// <summary>
        /// Remove a rates entry (remove its topic) and clear cached value for the topic.
        /// </summary>
        /// <param name="currency">the currency to be removed</param>
        /// <param name="callback">reports the outcome</param>
        public void removeRates(string currency, ITopicControlRemoveContextCallback <string> callback)
        {
            var topicName = RateTopicName(currency);

            if (valueUpdater != null)
            {
                valueUpdater.RemoveCachedValues(topicName);
            }

            topicControl.RemoveTopics(RateTopicName(currency), currency, callback);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Removes a currency (removes its topics and all subordinate rate topics).
 /// </summary>
 /// <param name="currency">The base currency.</param>
 /// <param name="callback">Reports the outcome.</param>
 public void RemoveCurrency(string currency, ITopicControlRemoveContextCallback <string> callback)
 {
     topicControl.RemoveTopics(string.Format(">{0}/{1}", RootTopic, currency), currency, callback);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Remove a rate (removes its topic).
 /// </summary>
 /// <param name="currency">The base currency.</param>
 /// <param name="targetCurrency">The target currency.</param>
 /// <param name="callback">Reports the outcome.</param>
 public void RemoveRate(string currency, string targetCurrency,
                        ITopicControlRemoveContextCallback <string> callback)
 {
     topicControl.RemoveTopics(string.Format(">{0}", RateTopicName(currency, targetCurrency)),
                               string.Format("{0}/{1}", currency, targetCurrency), callback);
 }
 /// <summary>
 /// Remove a rate (removes its topic).
 /// </summary>
 /// <param name="currency">The base currency.</param>
 /// <param name="targetCurrency">The target currency.</param>
 /// <param name="callback">Reports the outcome.</param>
 public void RemoveRate( string currency, string targetCurrency,
     ITopicControlRemoveContextCallback<string> callback )
 {
     topicControl.RemoveTopics( string.Format( ">{0}", RateTopicName( currency, targetCurrency ) ),
         string.Format( "{0}/{1}", currency, targetCurrency ), callback );
 }
 /// <summary>
 /// Removes a currency (removes its topics and all subordinate rate topics).
 /// </summary>
 /// <param name="currency">The base currency.</param>
 /// <param name="callback">Reports the outcome.</param>
 public void RemoveCurrency( string currency, ITopicControlRemoveContextCallback<string> callback )
 {
     topicControl.RemoveTopics( string.Format( ">{0}/{1}", RootTopic, currency ), currency, callback );
 }
        /// <summary>
        /// Remove a rates entry (remove its topic) and clear cached value for the topic.
        /// </summary>
        /// <param name="currency">the currency to be removed</param>
        /// <param name="callback">reports the outcome</param>
        public void removeRates( string currency, ITopicControlRemoveContextCallback<string> callback )
        {
            var topicName = RateTopicName( currency );
            if ( valueUpdater != null ) {
                valueUpdater.RemoveCachedValues( topicName );
            }

            topicControl.RemoveTopics( RateTopicName( currency ), currency, callback );
        }