Closed dmpas closed 2 months ago
The changes introduce a new ComponentLoadingContext
class that extends AssemblyLoadContext
, enabling dynamic assembly and unmanaged DLL loading. This class manages loaded assemblies and resolves dependencies more efficiently. Additionally, the LibraryLoader
class has been updated to utilize the new context for loading libraries, shifting the assembly loading mechanism to a context-specific approach.
Files | Change Summary |
---|---|
src/ScriptEngine.HostedScript/.../ComponentLoadingContext.cs |
Introduced ComponentLoadingContext class for dynamic assembly and DLL loading; modified loading methods to check existing assemblies and resolve paths. |
src/ScriptEngine.HostedScript/.../LibraryLoader.cs |
Updated LoadLibrary method to use ComponentLoadingContext for loading assemblies instead of Assembly.LoadFrom . |
🐰 In the meadow, bright and spry,
New contexts bloom, oh me, oh my!
Assemblies dance, DLLs play,
A loading feast, hip-hip-hooray!
With every hop, our code's refined,
A joyful leap, new paths aligned! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes