//This event handler runs when a PriceChange event is raised.
        //The client's PriceChange service operation is invoked to provide notification about the price change.

        public void MarketChangeHandler(object sender, MarketData newData)
        {
            callback.GetMarketData(newData);
        }
示例#2
0
 public void GetMarketData(MarketData marketdata)
 {
 }
        //Information source clients call this service operation to report a price change.
        //A price change event is raised. The price change event handlers for each subscriber will execute.

        public void PublishMarketData(MarketData newData)
        {
            MarketDataChangeEvent(this, newData);
        }