In this recipe, we will go about doing exactly what we did in the previous recipe, that is, initializing Windows Server AppFabric Cache client, but using XML configuration instead of code.
Cache Client requires an end point to connect to the Windows Server AppFabric. More specifically, we need to tell the DataCacheFactory
which host and port number to connect to for cache connection. In this recipe, we will use the application configuration XML file to specify these details. We will also write a similar simple application (this time without the DataCacheServerConfiguration
related details).
Just as seen in the preceding recipe, we will need to ensure that Windows Server AppFabric Cache is available by using PowerShell commandlets. Once we know the end point details (the host name and port number), Windows Server AppFabric cache is ready; we can get started with the following steps.
We will also need to:
Create an empty C# Console Project...