Exemplo n.º 1
0
 /// <summary>
 /// Handles the given message <paramref name="message" />
 /// </summary>
 /// <param name="message">The message.</param>
 public void Handle(StockQuotationsAddedOrChangedEvent message)
 {
     if (Data.ReplayFinished)
     {
         _eventBus.Publish(new StaticsticsBasicDataChangedEvent(message.Quotations.Min(q => q.Date)));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the given event <paramref name="event" />
 /// </summary>
 /// <param name="event">The event</param>
 /// <exception cref="NotImplementedException"></exception>
 public void Handle(StockQuotationsAddedOrChangedEvent @event)
 {
     Quotations.RemoveWhere(q => @event.Quotations.Contains(q));
     Quotations.AddRange(@event.Quotations);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the correlation identifier.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <returns></returns>
 public Guid GetCorrelationId(StockQuotationsAddedOrChangedEvent message)
 {
     return(CorrelationId);
 }