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 )); }
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 ))); }