diff options
author | vman <public@vaughnnugent.com> | 2022-12-28 23:48:48 -0500 |
---|---|---|
committer | vman <public@vaughnnugent.com> | 2022-12-28 23:48:48 -0500 |
commit | 189c6714057bf45553847eaeb9ce97eb7272eb8c (patch) | |
tree | d8819e26d41bebec894e2ecdc7c69b4f98a32195 /VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs | |
parent | 0c2fa662f60cf8b6b771fef3ff4c740eae17a83d (diff) |
Share only vnlib types for now
Diffstat (limited to 'VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs')
-rw-r--r-- | VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs b/VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs index a53bb0a..5baf123 100644 --- a/VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs +++ b/VNLib.Plugins.Extensions.Loading/AssemblyLoader.cs @@ -134,11 +134,11 @@ namespace VNLib.Plugins.Extensions.Loading typeof(PluginBase), }; - //Add all types that have already been loaded - shared.AddRange(currentCtx.Assemblies.SelectMany(s => s.GetExportedTypes())); + //Share all VNLib internal libraries + shared.AddRange(currentCtx.Assemblies.Where(static s => s.FullName.Contains("VNLib", StringComparison.OrdinalIgnoreCase)).SelectMany(static s => s.GetExportedTypes())); PluginLoader loader = PluginLoader.CreateFromAssemblyFile(assemblyName, - currentCtx.IsCollectible, + currentCtx.IsCollectible, shared.ToArray(), conf => { @@ -149,7 +149,7 @@ namespace VNLib.Plugins.Extensions.Loading * a "child" collection of assemblies */ conf.DefaultContext = currentCtx; - + conf.PreferSharedTypes = true; //Share utils asm |