Beispiel #1
0
        public PluginAssemblyLoadContext(string pluginPath, PluginLoadContextOptions options = null) : base(true)
        {
            _pluginPath = pluginPath;
            _resolver   = new AssemblyDependencyResolver(pluginPath);
            _options    = options ?? new PluginLoadContextOptions();

            _runtimeAssemblyHints = _options.RuntimeAssemblyHints;

            if (_runtimeAssemblyHints == null)
            {
                _runtimeAssemblyHints = new List <RuntimeAssemblyHint>();
            }
        }
Beispiel #2
0
 public PluginAssemblyLoadContext(string pluginPath, PluginLoadContextOptions options = null) : base(true)
 {
     _pluginPath = pluginPath;
     _resolver   = new AssemblyDependencyResolver(pluginPath);
     _options    = options ?? new PluginLoadContextOptions();
 }
Beispiel #3
0
 public PluginAssemblyLoadContext(Assembly assembly, PluginLoadContextOptions options = null) : this(assembly.Location, options)
 {
 }