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)
210 references to AssemblyLoadContext
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (2)
dotnet-svcutil-lib (1)
dotnet-watch (1)
GetDocument.Insider (1)
illink (1)
Microsoft.AspNetCore.Components.Testing (1)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.Build (8)
Microsoft.Build.Framework (11)
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 (65)
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))
512Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts;
521foreach (KeyValuePair<long, WeakReference<AssemblyLoadContext>> alcAlive in allContexts)
523if (alcAlive.Value.TryGetTarget(out AssemblyLoadContext? alc))
539private static AsyncLocal<AssemblyLoadContext?>? s_asyncLocalCurrent;
559/// <see cref="AssemblyLoadContext.EnterContextualReflection"/>.
565public static AssemblyLoadContext? CurrentContextualReflectionContext => s_asyncLocalCurrent?.Value;
567private static void SetCurrentContextualReflectionContext(AssemblyLoadContext? value)
571Interlocked.CompareExchange<AsyncLocal<AssemblyLoadContext?>?>(ref s_asyncLocalCurrent, new AsyncLocal<AssemblyLoadContext?>(), null);
605AssemblyLoadContext assemblyLoadContext = GetLoadContext(activating) ??
616/// <see cref="AssemblyLoadContext.EnterContextualReflection"/>
621private readonly AssemblyLoadContext? _activated;
622private readonly AssemblyLoadContext? _predecessor;
625internal ContextualReflectionScope(AssemblyLoadContext? activating)
897AssemblyLoadContext parentALC = GetLoadContext(parentAssembly)!;
966internal static readonly AssemblyLoadContext s_loadContext = new DefaultAssemblyLoadContext();
System.Private.DataContractSerialization (4)
System.Private.Xml (11)
System.Reflection.DispatchProxy (5)
System.Runtime.InteropServices.JavaScript (4)
System.Runtime.Loader (1)