9 types derived from AssemblyLoadContext
Aspire.Hosting.RemoteHost (1)
Microsoft.Build.Framework (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (1)
rzc (1)
System.Private.CoreLib (3)
207 references to AssemblyLoadContext
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (2)
dotnet-svcutil-lib (1)
dotnet-watch (1)
illink (1)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.Build (8)
Microsoft.Build.Framework (10)
Microsoft.CodeAnalysis (20)
Microsoft.CodeAnalysis.Workspaces (26)
Microsoft.DotNet.ApiCompat.Task (3)
Microsoft.DotNet.GenFacades (3)
Microsoft.DotNet.HotReload.WebAssembly.Browser (5)
Microsoft.DotNet.NativeWrapper (1)
Microsoft.Extensions.DotNetDeltaApplier (6)
Microsoft.TemplateEngine.Edge (6)
Microsoft.TestPlatform.PlatformAbstractions (4)
MSBuild (7)
rzc (5)
System.DirectoryServices.Protocols (1)
System.Private.CoreLib (64)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (35)
34private static Dictionary<long, WeakReference<AssemblyLoadContext>>? s_allContexts;
38private static Dictionary<long, WeakReference<AssemblyLoadContext>> AllContexts =>
40Interlocked.CompareExchange(ref s_allContexts, new Dictionary<long, WeakReference<AssemblyLoadContext>>(), null) ??
57private event Func<AssemblyLoadContext, AssemblyName, Assembly>? _resolving;
59private event Action<AssemblyLoadContext>? _unloading;
107Dictionary<long, WeakReference<AssemblyLoadContext>> allContexts = AllContexts;
111allContexts.Add(_id, new WeakReference<AssemblyLoadContext>(this, true));
160Dictionary<long, WeakReference<AssemblyLoadContext>> allContexts = AllContexts;
174AssemblyLoadContext? alc = GetLoadContext(a);
211public event Func<AssemblyLoadContext, AssemblyName, Assembly?>? Resolving
226public event Action<AssemblyLoadContext>? Unloading
265public static AssemblyLoadContext Default => DefaultAssemblyLoadContext.s_loadContext;
273public static IEnumerable<AssemblyLoadContext> All
279Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts;
282WeakReference<AssemblyLoadContext>[] alcSnapshot;
286alcSnapshot = new WeakReference<AssemblyLoadContext>[allContexts.Count];
288foreach (KeyValuePair<long, WeakReference<AssemblyLoadContext>> item in allContexts)
294foreach (WeakReference<AssemblyLoadContext> weakAlc in alcSnapshot)
296if (weakAlc.TryGetTarget(out AssemblyLoadContext? alc))
473Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts;
482foreach (KeyValuePair<long, WeakReference<AssemblyLoadContext>> alcAlive in allContexts)
484if (alcAlive.Value.TryGetTarget(out AssemblyLoadContext? alc))
500private static AsyncLocal<AssemblyLoadContext?>? s_asyncLocalCurrent;
520/// <see cref="AssemblyLoadContext.EnterContextualReflection"/>.
526public static AssemblyLoadContext? CurrentContextualReflectionContext => s_asyncLocalCurrent?.Value;
528private static void SetCurrentContextualReflectionContext(AssemblyLoadContext? value)
532Interlocked.CompareExchange<AsyncLocal<AssemblyLoadContext?>?>(ref s_asyncLocalCurrent, new AsyncLocal<AssemblyLoadContext?>(), null);
566AssemblyLoadContext assemblyLoadContext = GetLoadContext(activating) ??
577/// <see cref="AssemblyLoadContext.EnterContextualReflection"/>
582private readonly AssemblyLoadContext? _activated;
583private readonly AssemblyLoadContext? _predecessor;
586internal ContextualReflectionScope(AssemblyLoadContext? activating)
858AssemblyLoadContext parentALC = GetLoadContext(parentAssembly)!;
927internal static readonly AssemblyLoadContext s_loadContext = new DefaultAssemblyLoadContext();
System.Private.DataContractSerialization (4)
System.Private.Xml (13)
System.Reflection.DispatchProxy (5)
System.Runtime.InteropServices.JavaScript (4)
System.Runtime.Loader (1)