views:

70

answers:

1

Are there facilities in StructureMap that will allow me to load services from other modules (assemblies) on demand like it's done in Unity?

A: 

Like This?

            Assembly ass = Assembly.GetCallingAssembly();
        Container.Configure(x => x.Scan(scan =>
        {
            scan.Assembly(ass); 
            scan.LookForRegistries();
        }));
ozczecho