Is the following scenario possible using WCF?

I'm trying to accomplish the following situation. It's simple conceptually, I'm just not sure how I could do this or if it's even possible.

Let's say I have 4 projects
- WCF Service
- WCF Host (using my own host, just for testing)
- Console app A
- Console app B

Let's say I communicate with the WCF host using Console app A, let's say my service has a Ping method. What I want to do is when Console app A calls the ping method on my WCF service, Console app B will show that the Ping method was called (just a simple writeline to console will do). Essentially I want Console app B to show any communication that is happening in the WCF service, even if that communication is coming from a different .exe (Console app A).

Is this possible? I know I could have the WCF service do something like update a database and have Console app B poll the DB, but I don't want to do that. I'm looking for direct communication.

Can this be done?

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

SriVaddadiConnect With a Mentor Commented:
There is something called CallbackContract through which you could get a call back from WCF service and if the instance mode is set to single then a single instance communicates with both of the clients in this case Console App A and Console App B.  Below is a link which might be helpful.

Yes. This can be done
PoeticAudioAuthor Commented:
Any insight? Just a high level explanation will help.
Even publisher and subscriber model could also be used. Below is another link which explains different scenarios. Excellent article by Juwan Lowy one of my fav authors
Did my comments help you?
All Courses

From novice to tech pro — start learning today.