How to send log message from a Windows (NT) service to a WinForms application using WCF?

S

Susan Harris

I have a Windows (NT) service developed in .NET 3.5 (VS2008). I want this
service to log messages to a WinForms application that will display it's
progress to the user. It has to run under Vista, so I can't use an
interactive service. The monitoring application will just display a list of
these log entries as they arrive.

I'd like to use WCF (using it to consume a third party web service already).
However, I can't fnd any examples that show me have to *push* data to
another application using WCF. All the simple examples seem to have the
client calling a function in the service that returns a string message.

Doesn't anyone know of any sample code that shows how to do this? I'd have
thought the need to monitor a service was common enough there there would be
the odd tutorial.
 
M

Mr. Arnold

Susan Harris said:
I have a Windows (NT) service developed in .NET 3.5 (VS2008). I want this
service to log messages to a WinForms application that will display it's
progress to the user. It has to run under Vista, so I can't use an
interactive service. The monitoring application will just display a list of
these log entries as they arrive.

I'd like to use WCF (using it to consume a third party web service
already). However, I can't fnd any examples that show me have to *push*
data to another application using WCF. All the simple examples seem to
have the client calling a function in the service that returns a string
message.

Doesn't anyone know of any sample code that shows how to do this? I'd have
thought the need to monitor a service was common enough there there would
be the odd tutorial.

You mention Vista. This may work for you. I don't think it makes a
difference if it's a WCF solution. You just need a object that's used by WCF
that broadcasts messages that another application such as a Windows Desktop
based will listen for the messages.

http://www.codeproject.com/KB/dotnet/XDMessaging.aspx
 

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