DnsEndPoint from IEventStoreConnection

I create my eventstore connection:

var connection = EventStoreConnection.Create(eventStoreConnectionString);

Now, I want to check my eventstore for persistent subscriptions:

var subscriptionManager = new PersistentSubscriptionsManager(new ConsoleLogger(), new DnsEndPoint(eventStoreAddress, 2113), TimeSpan.FromSeconds(1));

Is there a way either using connection or some other method that I can get the IP address only from my eventstore connection?

At the moment, I am swithering between using another configuration field, or try some string manipulation to get to the IP address in eventStoreConnectionString.

Steven

I agree, it’s not well-thought. I had to write my own connection string parser to produce connection settings for the projections manager. Unfortunately, it was in a closed-source codebase.