/// <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)); } }
/// <summary> /// Gets the correlation identifier. /// </summary> /// <param name="message">The message.</param> /// <returns></returns> public Guid GetCorrelationId(TransactionPerformanceCalculatedEvent message) { return(CorrelationId); }
/// <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); }