Example #1
0
 public void Handle(PriceChanged message)
 {
     Bus.Publish(new CallMeIn15SecondsWith(new RemoveFromLow(message.PriceId)));
     Bus.Publish(new CallMeIn30SecondsWith(new RemoveFromHigh(message.PriceId)));
     _lowPrices.Add(message.PriceId, message.Price);
     _highPrices.Add(message.PriceId, message.Price);
 }
 public bool Equals(PriceChanged other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return other.PriceId.Equals(PriceId) && other.Price == Price;
 }