Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created February 23, 2016 04:14
Show Gist options
  • 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