Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align catch-up and persistent subscription Subscribe #119

Open
alexeyzimarev opened this issue May 8, 2021 · 0 comments
Open

Align catch-up and persistent subscription Subscribe #119

alexeyzimarev opened this issue May 8, 2021 · 0 comments

Comments

@alexeyzimarev
Copy link
Member

Catch-up subscriptions have the ability to tweak the client operation options:

public Task<StreamSubscription> SubscribeToStreamAsync(
...
      Action<EventStoreClientOperationOptions>? configureOperationOptions = null,
...
    {
      EventStoreClientOperationOptions operationOptions = this.Settings.OperationOptions.Clone();
      if (configureOperationOptions != null)
        configureOperationOptions(operationOptions);
      return this.SubscribeToStreamAsync(streamName, eventAppeared, operationOptions, resolveLinkTos, subscriptionDropped, userCredentials, cancellationToken);
    }

However, for persistent subscriptions, there is no such possibility, it just clones the client settings, as in the snippet above, but doesn't provide any options to tweak the settings.

Is it by design, why can one tweak client operation options for catch-up subscriptions, but not for persistent subscriptions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants