title: DryIoC register configuration
body: <p>I am working on a Xamarin project with Prism and DryIoC.</p>
  <p>Currently I am setting up some custom environment-specific configuration, however I am struggling with the IoC syntax for this.</p>
  <p>I have the following code as part of my App.xaml.cs:</p>
  <pre><code>private void SetConfiguration(IContainerRegistry containerRegistry)
          {
              // Get and deserialize config.json file from Configuration folder.
              var embeddedResourceStream = Assembly.GetAssembly(typeof(IConfiguration)).GetManifestResourceStream(&quot;MyVismaMobile.Configurations.Configuration.config.json&quot;);
              if (embeddedResourceStream == null)
                  return;
  
              using (var streamReader = new StreamReader(embeddedResourceStream))
              {
                  var jsonString = streamReader.ReadToEnd();
                  var configuration = JsonConvert.DeserializeObject&lt;Configuration.Configuration&gt;(jsonString);
  
                  What to do with configuration, in order to DI it?
              }
  </code></pre>
  <p>What should I do with the configuration variable to inject it?
  I have tried the following:</p>
  <pre><code>containerRegistry.RegisterSingleton&lt;IConfiguration, Configuration&gt;(c =&gt; configuration);
  containerRegistry.Register&lt;IConfiguration, Configuration&gt;(c =&gt; configuration));
  </code></pre>
  <p>But the syntax is wrong with dryIoC.</p>