diff options
author | Gaurav Khanna (CLR) <gaurav.khanna@microsoft.com> | 2016-01-15 15:06:01 -0800 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2016-01-21 07:26:51 -0800 |
commit | 7e1a3b532dc2fb2eab2d41994c971759243def19 (patch) | |
tree | f85fba1b7b911ee580768aa8eb40d771a61c0ec1 /src/vm/assemblynative.cpp | |
parent | 17cf0eae0414c01c33af403cc54bb37cf3b84016 (diff) | |
download | coreclr-7e1a3b532dc2fb2eab2d41994c971759243def19.tar.gz coreclr-7e1a3b532dc2fb2eab2d41994c971759243def19.tar.bz2 coreclr-7e1a3b532dc2fb2eab2d41994c971759243def19.zip |
Add support for AssemblyResolution when an assembly is not found in a given Load Context.
1) Expose AssemblyResolve event off AssemblyLoadContext
2) Invoke the event if the abstract Load implementation does not return an assembly.
Diffstat (limited to 'src/vm/assemblynative.cpp')
-rw-r--r-- | src/vm/assemblynative.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/assemblynative.cpp b/src/vm/assemblynative.cpp index 70bccccf76..c96923ded6 100644 --- a/src/vm/assemblynative.cpp +++ b/src/vm/assemblynative.cpp @@ -2533,14 +2533,14 @@ INT_PTR QCALLTYPE AssemblyNative::InitializeAssemblyLoadContext(INT_PTR ptrManag { // We are initializing the managed instance of Assembly Load Context that would represent the TPA binder. // First, confirm we do not have an existing managed ALC attached to the TPA binder. - INT_PTR ptrTPAAssemblyLoadContext = pTPABinderContext->GetManagedTPABinderInstance(); + INT_PTR ptrTPAAssemblyLoadContext = pTPABinderContext->GetManagedAssemblyLoadContext(); if ((ptrTPAAssemblyLoadContext != NULL) && (ptrTPAAssemblyLoadContext != ptrManagedAssemblyLoadContext)) { COMPlusThrow(kInvalidOperationException, IDS_HOST_ASSEMBLY_RESOLVER_INCOMPATIBLE_TPA_BINDING_CONTEXT); } // Attach the managed TPA binding context with the native one. - pTPABinderContext->SetManagedTPABinderInstance(ptrManagedAssemblyLoadContext); + pTPABinderContext->SetManagedAssemblyLoadContext(ptrManagedAssemblyLoadContext); ptrNativeAssemblyLoadContext = reinterpret_cast<INT_PTR>(pTPABinderContext); } |