سؤال

I have two projects, one of them is a "Windows phone application" and the other is a "Windows phone Audio player Agent".

In order to provide the AudioPlayer with something like "the next track" I need a way to communicate between my application and the agent.

My first attempt was a singleton, I don't know exactly why, but both of them create their own instance of the singleton.

So what is the best/easiest way to communicate ?

هل كانت مفيدة؟

المحلول

The MSDN Sample about Audio Agents explains precisely how to do this.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top