Exemple #1
0
    public AssemblyDomain(string key) : base(key)
    {
#if !NETSTANDARD2_0
        _load_resolver = new AssemblyDependencyResolver(AppDomain.CurrentDomain.BaseDirectory);
#endif

        ShortReferences = new ShortNameReference();
        DllAssemblies   = new ConcurrentDictionary <string, Assembly>();
        DomainManagement.Add(key, this);
    }
Exemple #2
0
 static NatashaReferenceDomain()
 {
     DefaultDomain = new NatashaReferenceDomain();
     DomainManagement.Add("Default", DefaultDomain);
 }