all groups > dotnet distributed apps > february 2005 >
You're in the

dotnet distributed apps

group:

Communicating with a service


Communicating with a service Junk NO[at]SPAM ballsdeep.net
2/10/2005 3:43:07 PM
dotnet distributed apps: I've got a service in c# which sits and collects data, no problem
there.

What I want is a Client Application that can grab the data "Live", and
perhaps change the configuration of the service, which will either be
on the Service machine or even a remote machine.

I've looked at .Net Remoting for this, but it doesn't seem to do what
I want.

I've setup a remotetype, and I can set that up in the service fine,
but as its a type and not an instantiated object when it gets setup,
I've got no way of telling it what the client app needs to know. Also,
you don't even know when it gets setup.

I've looked at the ServiceController's CustomCommand, which looks like
a method of telling the service to do something, but you can't
retrieve any data that way.

I've thought about using the registry or just a file, but that seems
like a fudge to me and I'd rather do it the proper way. (I'd rather
avoid COM if possible tho...never was much good at that.)

Any help appreciated!

Re: Communicating with a service Eugene Mayevski
2/13/2005 12:17:07 PM
Hello!
You wrote on 10 Feb 2005 15:43:07 -0800:

CD> What I want is a Client Application that can grab the data "Live", and
CD> perhaps change the configuration of the service, which will either be
CD> on the Service machine or even a remote machine.

Use MsgConnnect (http://www.msgconnect.com/) and it's MMFTransport, which
was designed exactly for what you need.

With best regards,
Eugene Mayevski
Re: Communicating with a service Junk NO[at]SPAM ballsdeep.net
2/16/2005 3:04:53 AM
I understand what your saying, and sometimes a 3rd party util is the
best way to go, but if there is a "Pure" .net way, I'd like to do it
so I understand how it works!

Thanks...

[quoted text, click to view]
AddThis Social Bookmark Button