Is Eventstoreclient thread safe?

Hi,

I’m just migrating our Solution vom v5 to v20.06.
Should I register the new Eventstore Client as Singleton in my DI-Container?

Thanks for Help!

Best Regards, Thomas

Yes. Please note that we already provide extension methods on ServiceCollection - AddEventStoreClient - which registers it as a singleton. The overload to configure the client via connection string is coming in the next version.

Hi Joao,

thanks for the fast reply.
That is good to hear. So the Client is Thread-Safe I assume.
I don’t want to use the Extention-Method.Used old Autofac Modules a lot and don’t want to refactor all of them.

BR. Thomas