Ok This was pretty simple - just needed to set user credentials… seems weird though, as the same client was able to write to event store without credentials.
The code for the catchup subscription is basically the same as james’ gist, the only change i think ive made is to the HandleSubscriptionDropped callback to be compatible with 2.0.0: https://gist.github.com/Jospeh/6076881
So I’ve not been able to get to the bottom of this, but I’ll try to explain what I’m seeing.
I have the catchup subscription running as a console app and a web site that appends events. When I start the console app, it will catch up to the current position as normal, but when I send a command through the website, resulting in a call to AppendToStream, the console app begins receiving this same event over and over.
I’ve reverted back to v1 now and subscriptions are working fine here.
I’ve managed to reproduce this now - the problem is in the GetEventStoreDispatcher class (a normal catch-up subscription doesn’t exhibit the same problems).
The subscription keeps being dropped and the code currently blindly resubscribes which overflows the queues. I’ll post a version which tolerates failure better shortly.