I am an enthusiastic (new) user of the structure structure, but I am having problems loading registries.
When I run my application from a local drive, all the registries in my application are used for type resolution. I checked this with ObjectFactory.WhatDoIHave () However, when I run the same application from a shared resource, not all registries are loaded. It seems that only registers that are currently loaded in appdomain are used to register types. It is strange that the application really works. I recently upgraded my application from .Net 3.5 to 4.0, maybe this has something to do with it.
This is what I have found so far, could this be a problem? Assembly.LoadFrom () in .NET 4.0
My code for registering my registries is:
var _container = new Container(x => { x.Scan( scan => { scan.AssembliesFromApplicationBaseDirectory(); scan.LookForRegistries(); }); });
Ruben source share