title: Accessing application objects from Windows Runtime Component (Background service)
body: <p>Having a UWP application with BackgroundTask project.</p>
  
  <p>I defined the background task in the manifest and registered it successfully.
  The problem is when the task is running</p>
  
  <pre><code>public sealed class MediaFilesScanTask : IBackgroundTask
  {
      public void Run(IBackgroundTaskInstance taskInstance)
      {
          var defferal = taskInstance.GetDeferral();
  
          var settings = Mvx.IoCProvider.Resolve&lt;ISettingsService&gt;();
  
          ...
      }
  </code></pre>
  
  <p>I cannot access any objects from my app.
  In that case, Mvx.IoCProvider is null, although I registered ISettingsService.
  I also tried a static class instead of using IoC, but even with that the class is null...</p>
  
  <p>I'm running the task manually, through VS in LifeCycle Events.</p>