Edd
Wed Nov 05 23:21:06 CST 2003
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
>-----Original Message-----
>if the service is a managed service you should just be
able to talk to it
>using remoting. also this has the benifit that event
remote clients can talk
>to the service.
>
>for remoting examples try
>
>
http://samples.gotdotnet.com/QuickStart/howto/default.aspx
?url=/quickstart/howto/doc/remoting/mainfeatures.aspx
>
>HTH
>Rahul
>
>
>"Edd" <anonymous@discussions.microsoft.com> wrote in
message
>news:05b401c3a417$46c38e50$a601280a@phx.gbl...
>> 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.
>>
>> >-----Original Message-----
>> >could you explain in greater detail - is this service
>> that you wrote?
>> > is it managed code ?
>> >"Edd" <anonymous@discussions.microsoft.com> wrote in
>> message
>> >news:08fe01c3a410$8659f420$a101280a@phx.gbl...
>> >> actually I have a COM+ object that needs to use the
>> >> service directly for config etc.
>> >>
>> >> Thanks
>> >> Edd
>> >>
>> >> >-----Original Message-----
>> >> >do you want to control a certain windows service
>> (start,
>> >> stop etc)
>> >> >
>> >> >if so take a look at the ServiceController class
>> >> >
>> >> >
http://msdn.microsoft.com/library/default.asp?
>> >> url=/library/en-
>> >>
>>
us/cpref/html/frlrfsystemserviceprocessservicebaseclasstopi
>> >> c.asp
>> >> >
>> >> >Rahul Kapoor
>> >> >r_ahu_l@nospam.yahoo.com
>> >> >
>> >> >
>> >> >"Edd" <anonymous@discussions.microsoft.com> wrote in
>> >> message
>> >> >news:05dc01c3a40e$419495e0$a501280a@phx.gbl...
>> >> >> 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
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >
>
>
>.
>