예제 #1
0
 /// <summary>
 /// Handles the given message <paramref name="message" />
 /// </summary>
 /// <param name="message">The message.</param>
 public void Handle(TransactionPerformanceCalculatedEvent message)
 {
     if (Data.ReplayFinished)
     {
         _eventBus.Publish(new StaticsticsBasicDataChangedEvent(message.HoldingPeriod.EndDate));
     }
 }
예제 #2
0
 /// <summary>
 /// Gets the correlation identifier.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <returns></returns>
 public Guid GetCorrelationId(TransactionPerformanceCalculatedEvent message)
 {
     return(CorrelationId);
 }
예제 #3
0
 /// <summary>
 /// Processes the given event <paramref name="eventData"/>
 /// </summary>
 /// <param name="eventData">Event data</param>
 public void Handle(TransactionPerformanceCalculatedEvent eventData)
 {
     AddItem(eventData.AggregateId, eventData.ProfitAbsolute);
 }