C# Client API ConnectionSettingsBuilder with explicit Build method

The ConnectionSettingsBuilder now defines an implicit conversion to ConnectionSettings.

F# doesn’t like implicit operators it seems. I could define an explicit operator myself (http://stackoverflow.com/questions/10719770/is-there-anyway-to-use-c-sharp-implicit-operators-from-f), but would it be terrible to have an explicit Build() method on the builder instead?

I could send a PR.

Regards

@JefClaes

Hi Jef,

You can get it to work like so:

let connectionSettings : ConnectionSettings = ConnectionSettingsBuilder.op_Implicit(connectionSettingsBuilder)

From:

https://github.com/adbrowne/Eventful/blob/master/src/Eventful.Tests.Integration/RunningTests.fs#L25

cheers

Andrew

I’ll add it after my talk.

Greg

Thanks, might be useful for the ClusterSettings too.

yep will do all of them :slight_smile:

https://github.com/EventStore/EventStore/commit/dc516976a5b1afc659b1f73671aa305556333252