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); }
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); }