views:

359

answers:

3

Is it possible to implement a publisher/subscriber model in WCF only by using events (i.e. not Lists or Dictionaries)?

If yes, plz provide me with a web link of an example application, Or any article that talks about this.

+2  A: 

Events are not possible in WCF. You have to use Callback-Contracts. Here you can find some information about the Publisher/Subscriber-Pattern in WCF.

Jehof
+1  A: 

I would refer you to Juval Lowy's website, IDesign.net. He is the author of arguably the definitive book on WCF, Programming WCF Services. His website is full of all kinds of examples that are freely available, including a working WCF Publish-Subscribe framework. Look for the Publish-Subscribe Framework in the Downloads area.

Matt Davis
+1  A: 

Yes. Here is an MSDN article all about it.

Mark Good