Windows Service Interaction

  • Thread starter Thread starter Edd
  • Start date Start date
E

Edd

With COM you could CoCreateInstance an NT service for an
interface and get access to it. How is this done
with .NET and windows services.

Thanks
Edd
 
actually I have a COM+ object that needs to use the
service directly for config etc.

Thanks
Edd
 
could you explain in greater detail - is this service that you wrote?
is it managed code ?
 
I have a service that does some work and the configuration
of that work is controlled by the service. The service
reads a config that tells it was work to accomplish. I
need to expose changes in the configuration to components
that require it. In old COM I could CoCreateInstance the
services COM object and interface and I could interact
with the service. I need the ability to have components
contact the service and get this information. I have
tried adding a component through System.ComponentModel but
cannot figure out how to expose it from the service.
Basically other components need to find out information
from the service through some interface.
 
Thanks. That is what I wound up doing. I thought the
components collection would allow me to add components and
access them through ServiceBase. Unfortunately, when I
add my components, my clients always see the IComponent
collection as null.

Oh well, I just thought there may be an easier way.

Thanks again
 
Back
Top