Ejemplo n.º 1
0
        public MatchAggregator(string tickerSymbol, IEventsByTagQuery eventsByTag, IActorRef mediator, ITimestamper timestamper)
        {
            TickerSymbol  = tickerSymbol;
            _priceTopic   = PriceTopicHelpers.PriceUpdateTopic(TickerSymbol);
            _volumeTopic  = PriceTopicHelpers.VolumeUpdateTopic(TickerSymbol);
            _eventsByTag  = eventsByTag;
            _mediator     = mediator;
            _timestamper  = timestamper;
            PersistenceId = EntityIdHelper.IdForPricing(tickerSymbol);

            Receives();
            Commands();
        }
Ejemplo n.º 2
0
 public MatchAggregator(string tickerSymbol, IEventsByTagQuery eventsByTag)
     : this(tickerSymbol, eventsByTag, DistributedPubSub.Get(Context.System).Mediator, CurrentUtcTimestamper.Instance)
 {
 }