protected override async Task <IStreamSubscription> SubscribeToStreamInternal( string streamId, int startVersion, StreamMessageReceived streamMessageReceived, SubscriptionDropped subscriptionDropped, string name, CancellationToken cancellationToken) { var subscription = new StreamSubscription( streamId, startVersion, this, GetStoreObservable, streamMessageReceived, subscriptionDropped); await subscription.Start(cancellationToken); return(subscription); }
protected override async Task <IStreamSubscription> SubscribeToStreamInternal( string streamId, int startVersion, StreamEventReceived streamEventReceived, SubscriptionDropped subscriptionDropped, string name, CancellationToken cancellationToken) { var subscription = new StreamSubscription( streamId, startVersion, this, _subscriptions, streamEventReceived, subscriptionDropped, name); await subscription.Start(cancellationToken); return(subscription); }