Windows Service Interaction

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
 
E

Edd

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

Thanks
Edd
 
R

Rahul Kapoor

could you explain in greater detail - is this service that you wrote?
is it managed code ?
 
E

Edd

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.
 
E

Edd

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top