Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created February 23, 2016 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/84897ec3d53859186dea to your computer and use it in GitHub Desktop.
Save dcomartin/84897ec3d53859186dea to your computer and use it in GitHub Desktop.
private void ConnectToSubscription()
{
var bufferSize = 10;
var autoAck = true;
_subscription = _conn.ConnectToPersistentSubscription(STREAM, GROUP, EventAppeared, SubscriptionDropped,
User, bufferSize, autoAck);
}
private void SubscriptionDropped(EventStorePersistentSubscriptionBase eventStorePersistentSubscriptionBase,
SubscriptionDropReason subscriptionDropReason, Exception ex)
{
ConnectToSubscription();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment