title: How to pass an object to background project in Windows Phone?
body: <p>My problem is that I have an <code>StorageFile</code> object in foreground and want to play it in <a href="http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.media.playback.backgroundmediaplayer.current.aspx" rel="nofollow">BackgroundMediaPlayer</a> like this:</p>
  
  <pre><code>mediaPlayer.SetFileSource(soundStorageFile);
  </code></pre>
  
  <p>but it is not possible to use <code>SetFileSource()</code> in the foreground, you should call it in the background task, or initialize a third project in the background and call it from there.</p>
  
  <p>So how can I pass an object to the background project?  </p>
  
  <p><em>(It's a Windows Phone Runtime app)</em></p>