Exemplo n.º 1
0
 private IEnumerable <IScopeContext> LoadItemsFromConfig(Type type, IEnumerable <IScopeContext> items)
 {
     items = ConfigurationResolver?.GetTypeBindingsFromConfig(type);
     if (items.IsEmpty())
     {
         Optimizer.AddBaseTypeIfNonExisting(type);
     }
     else
     {
         foreach (var scopeContext in items)
         {
             Optimizer.SetImplementationType(type, scopeContext, scopeContext.ImplementationKey);
         }
     }
     return(items);
 }