Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: WinRTContainer after RegisterPerRequest/RegisterSingleton crashes on object retrieval

$
0
0

Thanks for the information.

Actually, if I drop the " : this(null) " part, it still crashes when registering by 'RegisterPerRequest' / 'RegisterSingleton'

It works fine though if I use:

container.RegisterInstance(typeof(IDataAccess), null, new StoreDataAccess());

both with 'this(null)' and without, but this construct is essentially the same as

container.RegisterHandler(typeof(IDataAccess), null, simpleContainer => new StoreDataAccess());

as far as I can tell.

I'll just use the 'RegisterInstance' then, at least for now...


Viewing all articles
Browse latest Browse all 1760

Trending Articles



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