Luuk Krijnen
Luuk Krijnen

Reputation: 1192

Windows Service (C#) not firing events because no subscription

i'm trying to write a windows service firing custom events sending Specific strings. These strings should update a monitoring form (different app). While debugging, i notited that the external app isn't subscribed for receiving those events. I searched the internet but don't know where to start. All articles I found with this kind of problems are looking slightly different.

In Short:

App1 is a windows service firing events

App2 is a windows form that should receive these events and display received messages.

Where do I start

Upvotes: 1

Views: 761

Answers (1)

Oded
Oded

Reputation: 499072

.NET events are events that fire within a process (app-domain) - you can't subscribe to events in one process from another.

You need to look into some form of IPC - WCF is a good choice.

Upvotes: 3

Related Questions