I'm looking for the best way to use a Windows Service to manage a group of objects for use by several different client programs. The service must 1) create the list of objects corresponding to physical or virtual devices, 2) maintain information about what process is currently using a given device and what devices are available to be used, 3) manage requests to use a given device by a process, 4) return devices to an unused state.
When I look at the Windows Service examples, though, there is very limited communications to Services. OnCustomCommand doesn't return any information to the caller.
So is there a recommended way to establish information exchange between a service and various clients?
For background - I am replacing a Win32/COM app with a .Net app. The current device manager is a COM server with the clients being COM clients.