Skip to content

Fix - Add support for multiple AssemblyLoadContexts#359

Open
derstpal wants to merge 3 commits intoprotobuf-net:mainfrom
derstpal:features/FixMultipleALCsInPluginPattern
Open

Fix - Add support for multiple AssemblyLoadContexts#359
derstpal wants to merge 3 commits intoprotobuf-net:mainfrom
derstpal:features/FixMultipleALCsInPluginPattern

Conversation

@derstpal
Copy link

@derstpal derstpal commented Nov 5, 2025

Hello,

We are using a Plugin pattern for our dotnet application. Each plugin can use its own GRPC contract in isolation. The contract is loaded inside an AssemblyLoadContext. Plugins also share some common dependencies like protobuf-net.Grpc

When we Create a proxy on a same contract but loaded from different ALCs, we have various Reflection Type exceptions.
This PR contains a fix for this case and remain compatible on one default ALC and also other targetted frameworks.

Some docs:
Contextual Reflection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant