public void StartSubscription(Guid correlationId, TaskCompletionSource <EventStoreSubscription> source, string stream, UserCredentials userCredentials, bool resolveLinkTos, Action <EventStoreSubscription, ResolvedEvent> eventAppeared, Action <EventStoreSubscription, SubscriptionDropReason, Exception> subscriptionDropped)
        {
            var subscription = new EmbeddedSubscription(
                _log, _publisher, _connectionId, source, stream, userCredentials, _authenticationProvider,
                resolveLinkTos, eventAppeared,
                subscriptionDropped);

            _subscriptions.StartSubscription(correlationId, subscription);
        }
예제 #2
0
        public void Start(IPublisher publisher, Guid correlationId, TaskCompletionSource <EventStoreSubscription> source, string stream, bool resolveLinkTos, Action <EventStoreSubscription, ResolvedEvent> eventAppeared, Action <EventStoreSubscription, SubscriptionDropReason, Exception> subscriptionDropped)
        {
            var subscription = new EmbeddedSubscription(_log, publisher, _connectionId, source, stream, resolveLinkTos, eventAppeared,
                                                        subscriptionDropped);

            _subscriptions.StartSubscription(correlationId, subscription);
        }