Ejemplo n.º 1
0
 internal void RegisterAllTypesInAssembly(Type[] assemblyTypes)
 {
     foreach (Type type in assemblyTypes)
     {
         if (AssemblyTypeLoader.IsTypeResolveable(type) && !alreadyRegisteredTypes.Contains(type))
         {
             builder.RegisterType(type).AsSelf().InstancePerLifetimeScope();
             AddRegisteredType(type);
         }
     }
 }
Ejemplo n.º 2
0
 protected Resolver()
 {
     assemblyLoader = new AssemblyTypeLoader(this);
     manuallyCreatedDisposableObjects = new List <IDisposable>();
 }