Obtain the settings used to create a connection

Hi,

If I have an IEventStoreConnection, it would be nice to be able to obtain the connection/cluster settings used to create the connection. Is this currently possible?

Kind regards

Sean.

As of now no but it’s a trivial change and seems possibly valuable so I will add it right now. It should be in binaries today or tomorrow (3.0.1) I’m not too worried about it breaking for the release lol :slight_smile:

Right now we use IEventStoreConnection with multiple implementations
(NodeConnection, Embedded, etc) each has their own settings. I put
them quickly on NodeConnection but this will require you to cast to a
NodeConnection. I would put them on the interface but this really
doesn't work either as you would still have to cast (or we would have
to change them out for a KV etc).

This should keep you going for now?

Cheers,

Greg

Hi,

Is ther a NuGet package for this, or shall I build from source for now?
Cheers
Sean.

There will be shortly (it will be in 3.0.1) scheduled for release as
far as I know :slight_smile:

Hi,

That will work for now thanks.
A dictionary<string, object> for both connection and cluster settings would be nice, would this work on the IEventStoreConnection interface?
I'm assuming there are only two implmentations of this currently?
Kind regards
Sean.

There is ClusterSettings, ConnectionSettings.

I implemented it by putting Connection and ClusterSettings on the
connection (ClusterSettings can be null if not custered). I also put
the connectionsettings on the EmbeddedConnection (cluster is always
null).

This is currently available in binary form on 3.0.1 which is now
public (low risk change so we included it in the release that was
going out).

Cheers,

Greg