コード例 #1
0
 private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourUnitOfExecution.Dispatch(
         () =>
     {
         this.flourPrice = e.Price;
         this.Compute();
     });
 }
コード例 #2
0
 private void MarketDataEggPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     // forward the notification to the sequencer
     this.eggUnitOfExecution.Dispatch(
         () =>
     {
         this.eggPrice = e.Price;
         this.Compute();
     });
 }
コード例 #3
0
        // 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();
            });
        }
コード例 #4
0
 private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourProcessor.Post(e.Price);
 }
コード例 #5
0
 private void MarketDataPackagingPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.packagingProcessor.Post(e.Price);
 }
コード例 #6
0
 /// <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();
             });
 }