private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e) { this.flourUnitOfExecution.Dispatch( () => { this.flourPrice = e.Price; this.Compute(); }); }
private void MarketDataEggPriceChanged(object sender, RawMaterialPriceChangedEventArgs e) { // forward the notification to the sequencer this.eggUnitOfExecution.Dispatch( () => { this.eggPrice = e.Price; this.Compute(); }); }
// price update handles private void MarketDataPackagingPriceChanged(object sender, RawMaterialPriceChangedEventArgs e) { // forward the notification to the sequencer this.packagingUnitOfExecution.Dispatch( () => { // capture the price this.packagingPrice = e.Price; // computes an updated price this.Compute(); }); }
private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e) { this.flourProcessor.Post(e.Price); }
private void MarketDataPackagingPriceChanged(object sender, RawMaterialPriceChangedEventArgs e) { this.packagingProcessor.Post(e.Price); }
/// <summary> /// The market data_ flour price changed. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void MarketData_FlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e) { this.flourUnitOfExecution.Dispatch( () => { this.flourPrice = e.Price; this.Compute(); }); }