You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assemblies are loaded by the AssemblyScanner using Assembly.LoadFrom(assemblyPath) API. When running within Azure Functions in .NET Core, assemblies scanned and loaded appear to have a different AssemblyLoadContext.
vs
That's causing types from the loaded assemblies to fail reference equality check. In turn, that causes message handlers identification to fail and messages not being associated with message handlers. This can be resolved by loading assemblies using a shared AssemblyLoadContext when running in .NET Core.
SeanFeldman
transferred this issue from Particular/NServiceBus.AzureFunctions.InProcess.ServiceBus
Jun 8, 2020
SeanFeldman
changed the title
Azure Functions and Assembly Scanning issue
The Core loads assemblies using an API that loads them into the wrong AssemblyLoadContext
Jun 8, 2020
Assemblies are loaded by the
AssemblyScanner
usingAssembly.LoadFrom(assemblyPath)
API. When running within Azure Functions in .NET Core, assemblies scanned and loaded appear to have a differentAssemblyLoadContext
.vs
That's causing types from the loaded assemblies to fail reference equality check. In turn, that causes message handlers identification to fail and messages not being associated with message handlers. This can be resolved by loading assemblies using a shared
AssemblyLoadContext
when running in .NET Core.A spike PR has been created in place: #5652
The text was updated successfully, but these errors were encountered: