//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 PublishPriceChange(string signalInformation) { PriceChangeEventArgs e = new PriceChangeEventArgs(); e.SignalInformation = signalInformation; PriceChangeEvent(this, e); }
//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 PublishPriceChange(string item, double price, double change) { PriceChangeEventArgs e = new PriceChangeEventArgs(); e.Item = item; e.Price = price; e.Change = change; PriceChangeEvent(this, e); }
//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 PriceChangeHandler(object sender, PriceChangeEventArgs e) { callback.PriceChange(e.Item, e.Price, e.Change); }
//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 PriceChangeHandler(object sender, PriceChangeEventArgs e) { callback.PriceChange(e.SignalInformation); }