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?

Thanks!
LVL 6
PoeticAudioAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SriVaddadiCommented:
Yes. This can be done
0
PoeticAudioAuthor Commented:
Any insight? Just a high level explanation will help.
0
SriVaddadiCommented:
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.
http://dotnetaddict.dotnetdevelopersjournal.com/wcf_alarmclock.htm

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SriVaddadiCommented:
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
http://msdn.microsoft.com/en-us/magazine/cc163537.aspx
0
SriVaddadiCommented:
Did my comments help you?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.