Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Forms / Prism / DryIoc - How can I get a reference to the DryIoc container?

$
0
0

I'm creating an app using Prism.DryIoc.Forms v7.0.0.396, and I'm struggling to perform anything other than trivial registration of dependencies in the RegisterTypes method on the App class - This method has access to a container registry of type Prism.Ioc.IContainerRegistry which exposes a very lean API that allows me to simply map an interface to a concrete class.

But I need to register a string value to be passed as a constructor parameter into one of my dependencies (not an unusual requirement in my experience). The DryIoc docs describe a rich API that would allow me to do this (bitbucket.org/dadhi/dryioc/wiki/SpecifyDependencyAndPrimitiveValues). So my question is, how can I access the actual DryIoc API to register dependencies within my Forms/Prism/DryIoc app?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>