I want to be able to develop a windows service which is capable of running multiple instances each with different parameters. Ideally I want to be able to maintain these parameters in a browser based control panel.
I have written a control panel in C# which saves the config data to an XML file. From this I want to be able to configure the number of services to run, and what their parameters should be. I want to be able to dynamically add and remove instances of the service as required.
My questions are: 1) Is this even possible? 2) Can I start a service with specific properties, from the control panel? (Maybe by using "NET START" with command line parameters?
[Edit] I just saw something online regarding the ServiceController class; can this be used to add and remove instances of a service as well as start/stop services? [/Edit]
Thanks for any help