Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Passing messages to Multiple Receivers using LocalConnection API ?
1 replies. Latest Post by bryant on November 4, 2009.
(0)
matkwan
Member
23 points
52 Posts
11-03-2009 8:42 PM |
Hi, I am able to use LocalConnection API to send a message to a receiver. (learning from this tutorial: http://www.silverlight.net/learn/videos/silverlight-videos/localconnection-api/) However when attempting to send a message to 2 receivers, I get this error "A receiver has already been registered with this name". Any idea how I can send messages to multiple receivers? Thanks Matt
bryant
Star
9937 points
1,629 Posts
11-04-2009 6:36 PM |
I don't think this is possible based on the documentation:
When you create the receiver, you must give it a name that is unique either globally, or within the receiving application's host domain.
Since the names have to be unique, you can't have two with the same name. If you really need this I suppose you could somehow chain the controls together so that the first one passes the message to the second one.