I’ve subscribed to a stream with
_connection.SubscribeToAllFrom(_position, false, HandleEvent);
and everything works fine except from when in debug in VS. If I debug HandleEvent will be called twice for each event. Any thoughts on why this might happen?
It should be called once. Can you provide a reproduction/unit test in the style of client api tests such as https://github.com/EventStore/EventStore/blob/dev/src/EventStore.Core.Tests/ClientAPI/subscribe_to_all_catching_up_should.cs
they contain all wire up etc of the node.
Also be careful you dont have two subscriptions pointing to the same method (not that I have made that mistake before :))