Exemplo n.º 1
0
 public void Remove(ImplementationDefinition url)
 {
     if (BaseIndexOf(url) >= 0)
     {
         BaseRemove(url.ImplementationKey);
     }
 }
 private static IScopeContext ResolveType(ImplementationDefinition item)
 {
     if (item.AssemblyPath.ContainsCharacters() && File.Exists(item.AssemblyPath))
     {
         var type = Assembly.LoadFile(item.AssemblyPath).GetType(item.TypeFullName, true, true);
         new ScopeContext(type, item.ImplementationKey) { AllowOverride = false }.SetScope(item.Scope);
         
     }
     return new ScopeContext(item.type,item.ImplementationKey) { AllowOverride = false }.SetScope(item.Scope);
 }
 private IScopeContext GetContextFromItem(ImplementationDefinition item)
 {
     return item.IsNull()
         ? ScopeContext.NullInstance()
         : ResolveType(item);
 }
Exemplo n.º 4
0
 public void Add(ImplementationDefinition url)
 {
     BaseAdd(url);
 }