Search code examples
c#.net-2.0messaging

Multi project application, provide send information between applications


I am writing a service based application, and a UI application within it. I am using Event Logs to log my error, but some of these errors are critical and user should be aware of.

What I need is to check if The UI application (Windows Application Project) is available, and running... if it's running send the error directly to the UI through a service based application (Windows Service Project).

Now, what to do? There are two step I should take, first check if UI is running, second send info like a class instance or a string or binary data (like using serialize) to the UI and UI receive it.


Solution

  • I think the two applications of yours can interact using the Socket mechanism.

    And check this for the "is running" bit: Checking if my Windows application is running