Implementing a cache in a WCF Service
问题 I have a WCF service that caches certain data and uses it to respond to web requests. To deal with this requirement, I made the service a Singleton (using InstanceContextMode.Single and ConcurrencyMode.Multiple (yes, it's threadsafe)). I've tried to set the timeout of the service to its maximum using the following binding: <binding name="WebHttpBinding" receiveTimeout="24.20:31:23.6470000"> <security mode="TransportCredentialOnly"> <transport clientCredentialType="None" /> </security> <