private void StreamEventAppeared(Guid correlationId, EventStore.Core.Data.ResolvedEvent resolvedEvent) { IEmbeddedSubscription subscription; _subscriptions.TryGetActiveSubscription(correlationId, out subscription); subscription.EventAppeared(resolvedEvent); }
protected void SendPrerecordedEvent( EventStore.Core.Data.ResolvedEvent pair, CheckpointTag positionTag, long prerecordedEventMessageSequenceNumber) { var committedEvent = new ReaderSubscriptionMessage.CommittedEventDistributed( Guid.Empty, new ResolvedEvent(pair, null), null, -1, source: this.GetType()); _publisher.Publish( EventReaderSubscriptionMessage.CommittedEventReceived.FromCommittedEventDistributed( committedEvent, positionTag, null, _projectionCorrelationId, prerecordedEventMessageSequenceNumber)); }
public void EventAppeared(EventStore.Core.Data.ResolvedEvent resolvedEvent) { _eventAppeared(_subscription, new ResolvedEvent(resolvedEvent.ConvertToResolvedIndexEvent())); }