예제 #1
0
        protected override Assembly Load(AssemblyName assemblyName)
        {
            // This fixes the issue where the ALC is still alive and utilized in the host
            if (this.disposed || this.disposing)
            {
                return(null);
            }

            return(assemblyLoadStrategy.LoadAssembly(
                       assemblyName,
                       LoadFromDependencyContext,
                       LoadFromRemote,
                       LoadFromDefaultContext
                       ));
        }
예제 #2
0
        protected override Assembly Load(AssemblyName assemblyName)
        {
            // This fixes the issue where the ALC is still alive and utilized in the host
            if (this.disposed || this.disposing)
            {
                return(null);
            }

            return(LoadAndAddToWeakReferences(assemblyLoadStrategy.LoadAssembly(
                                                  this.initialPluginLoadDirectory,
                                                  assemblyName,
                                                  this.pluginDependencyContext,
                                                  LoadFromDependencyContext,
                                                  LoadFromRemote,
                                                  LoadFromDefaultContext
                                                  )));
        }