By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,934 Members | 1,527 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,934 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Susan Harris" <su**************@yahoo.comwrote in message
news:u5**************@TK2MSFTNGP04.phx.gbl...
>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

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.