vlingo-net / xoom-net-common

These are just a few common tools shared across various vlingo .NET projects.
Mozilla Public License 2.0
7 stars 9 forks source link

DynaClassLoader enhancement for class loading in different assemblies #25

Closed tjaskula closed 5 years ago

tjaskula commented 5 years ago

This PR allows to load implementing class from a different assembly than requested interface namespace the class is implementing.

This fixes the following scenario we have currently in Vlingo.Wire:

This implementation allows to load Vlingo.Actors.Scheduled__Proxy if not found in Vlingo.Common namespace and if the Vlingo.Common.Scheduled__Proxy is requested. It finds candidates types like Vlingo.Actors.Scheduled__Proxy and checks that it really implements the interface Vlingo.Common.IScheduled

This behavior is different from the java implementation where I cannot observe the same bug.

tjaskula commented 5 years ago

I'll merge it as I need that in Actors and if you have and suggestions or remarks, please let me know and I'll fix them.