Hi,
We've been using RCF 1.3.1 for many happy years but now need to have the RCFclient in a DLL that is called concurrently.
This isn't working using a singleton model (static).
Is there a way within RCF (any version) to provided client pooling.
The client DLL is being loaded by SQL Server and the calls come from many different spid's at any time.
Thanks
Client concurrency
Re: Client concurrency
Hi,
There isn't a connection pool concept in RCF but in this case I think the simplest solution might be to use a thread local variable to hold a RcfClient<> instance, and that way each thread that calls in gets its own connection.
There isn't a connection pool concept in RCF but in this case I think the simplest solution might be to use a thread local variable to hold a RcfClient<> instance, and that way each thread that calls in gets its own connection.