31 references to GetLoadContext
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\RelatedAssemblyAttribute.cs (1)
43var loadContext = AssemblyLoadContext.GetLoadContext(assembly) ?? AssemblyLoadContext.Default;
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (3)
63CompilerLoadContext = compilerLoadContext ?? AssemblyLoadContext.GetLoadContext(typeof(SyntaxTree).GetTypeInfo().Assembly)!; 77var alc = AssemblyLoadContext.GetLoadContext(assembly); 193CodeAnalysisEventSource.Log.ResolvedAssembly(Directory, assemblyName.ToString(), resolver.GetType().Name, assembly.Location, GetLoadContext(assembly)!.ToString());
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorAnalyzerAssemblyResolver.cs (1)
37AssemblyLoadContext.GetLoadContext(typeof(Microsoft.CodeAnalysis.Compilation).Assembly)!,
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (2)
RazorAnalyzerAssemblyResolverTests.cs (2)
32InitialAssemblies = AssemblyLoadContext.GetLoadContext(this.GetType().Assembly)!.Assemblies.SelectAsArray(a => a.FullName); 40var count = AssemblyLoadContext.GetLoadContext(this.GetType().Assembly)!.Assemblies.SelectAsArray(a => a.FullName);
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (6)
RemoteAnalyzerAssemblyLoaderTests.cs (6)
39var alc1 = AssemblyLoadContext.GetLoadContext(remoteAssemblyInCurrentAlc); 40var alc2 = AssemblyLoadContext.GetLoadContext(remoteAssemblyLoadedViaRemoteLoader); 58var alc1 = AssemblyLoadContext.GetLoadContext(featuresAssemblyInCurrentAlc); 59var alc2 = AssemblyLoadContext.GetLoadContext(featuresAssemblyLoadedViaRemoteLoader); 74var alc1 = AssemblyLoadContext.GetLoadContext(compilerAssemblyInCurrentAlc); 75var alc2 = AssemblyLoadContext.GetLoadContext(compilerAssemblyLoadedViaRemoteLoader);
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (3)
63CompilerLoadContext = compilerLoadContext ?? AssemblyLoadContext.GetLoadContext(typeof(SyntaxTree).GetTypeInfo().Assembly)!; 77var alc = AssemblyLoadContext.GetLoadContext(assembly); 193CodeAnalysisEventSource.Log.ResolvedAssembly(Directory, assemblyName.ToString(), resolver.GetType().Name, assembly.Location, GetLoadContext(assembly)!.ToString());
Microsoft.DotNet.GenFacades (1)
RoslynBuildTask.cs (1)
23AssemblyLoadContext currentContext = AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly())!;
System.DirectoryServices.Protocols (1)
src\libraries\Common\src\Interop\Linux\OpenLdap\Interop.Ldap.cs (1)
76AssemblyLoadContext.GetLoadContext(currentAssembly).ResolvingUnmanagedDll += (assembly, ldapName) =>
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
315if (AssemblyLoadContext.Default != AssemblyLoadContext.GetLoadContext(requestingAssembly))
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (3)
173AssemblyLoadContext? alc = GetLoadContext(a); 565AssemblyLoadContext assemblyLoadContext = GetLoadContext(activating) ?? 760AssemblyLoadContext parentALC = GetLoadContext(parentAssembly)!;
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (1)
58(AssemblyLoadContext.CurrentContextualReflectionContext ?? AssemblyLoadContext.GetLoadContext(callingAssembly)) ??
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ContextAware.cs (2)
32AssemblyLoadContext? alc = AssemblyLoadContext.GetLoadContext(dataContract.UnderlyingType.Assembly); 71AssemblyLoadContext? alc = AssemblyLoadContext.GetLoadContext(t.Assembly);
System.Private.Xml (5)
System\Xml\Serialization\Compilation.cs (3)
596var typeALC = AssemblyLoadContext.GetLoadContext(t.Assembly); 601var baseALC = AssemblyLoadContext.GetLoadContext(assembly) ?? AssemblyLoadContext.CurrentContextualReflectionContext; 720AssemblyLoadContext? alc = AssemblyLoadContext.GetLoadContext(t.Assembly);
System\Xml\Serialization\ContextAwareTables.cs (1)
35AssemblyLoadContext? alc = AssemblyLoadContext.GetLoadContext(t.Assembly);
System\Xml\Serialization\XmlSerializer.cs (1)
709AssemblyLoadContext? alc = AssemblyLoadContext.GetLoadContext(type.Assembly);
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
71AssemblyLoadContext? alc = AssemblyLoadContext.GetLoadContext(baseType.Assembly);