Exemple #1
0
 protected override object GetInstance(Type service, string key)
 {
     //NOTE: initialize the assembly (module)
     if (service != null)
     {
         ModuleConventions.InitializeAssembly(service.Assembly);
     }
     return(container.GetInstance(service, key));
 }
Exemple #2
0
 protected override IEnumerable <object> GetAllInstances(Type service)
 {
     //NOTE: initialize the assembly (module)
     ModuleConventions.InitializeAssembly(service.Assembly);
     return(container.GetAllInstances(service));
 }