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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Susan Harris

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

    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.

  • Mr. Arnold

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


    "Susan Harris" <susanbharris19 72@yahoo.comwro te in message
    news:u5LDKOAyIH A.3968@TK2MSFTN GP04.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.



    Comment

    Working...