Skip to main content

Microsoft Silverlight

Answered Question Passing messages to Multiple Receivers using LocalConnection API ?RSS Feed

(0)

matkwan
matkwan

Member

Member

23 points

52 Posts

Passing messages to Multiple Receivers using LocalConnection API ?

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
bryant

Star

Star

9937 points

1,629 Posts

Silverlight MVP
Answered Question

Re: Passing messages to Multiple Receivers using LocalConnection API ?

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.

-- bryant

Blog | Twitter
_________________
Dont forget to click "Mark as Answer" on the post that helped you.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities