Start cache servers programatically? (for testing)

Topics: User Forum
Jun 7, 2010 at 8:17 PM

Hi, I was wondering if there  is a way to start and stop multiple SharedCache servers programatically, instead of through the windows services?

The situation is that I want to write a unit test suite that will test cache servers coming into and out of the cluster, replication, etc.  It would be really nice if I could programatically bring up and shut down multiple cache servers on localhost on different ports.

I know I could accomplish this by setting up multiple config files and multiple windows services and starting and stopping them through the .net windows services API, but I don't want to have to go through the trouble of having every developer on the team set up all the windows services for multiple test servers so that we can all run tests.

Any ideas?

Thanks for any help!