Table of Contents

Class AssemblyLoadContextState

Namespace
Dynamicweb.Extensibility.AddIns
Assembly
Dynamicweb.Core.dll
public sealed class AssemblyLoadContextState
Inheritance
AssemblyLoadContextState
Inherited Members

Properties

Contexts

Gets all currently loaded AssemblyLoadContext instances that can be used to get types from.

public static IEnumerable<AssemblyLoadContext> Contexts { get; }

Property Value

IEnumerable<AssemblyLoadContext>

Methods

Add(AssemblyLoadContext)

Adds the context so it can be used for type lookups.

public static void Add(AssemblyLoadContext context)

Parameters

context AssemblyLoadContext

Add(AssemblyLoadContext, bool)

Adds the context. If asIsolatedContext is true, the context will be treated as isolated. Isolated contexts cannot be used for type lookups.

public static void Add(AssemblyLoadContext context, bool asIsolatedContext)

Parameters

context AssemblyLoadContext
asIsolatedContext bool

AddDependency(AssemblyLoadContext, string)

Adds a dependency to the given context.

public static void AddDependency(AssemblyLoadContext context, string dependency)

Parameters

context AssemblyLoadContext
dependency string

GetDependencies(AssemblyLoadContext)

Gets any dependencies that the given context may have.

public static IEnumerable<string> GetDependencies(AssemblyLoadContext context)

Parameters

context AssemblyLoadContext

Returns

IEnumerable<string>

Remove(AssemblyLoadContext)

Removes the context from the list of contexts. This includes isolated contexts.

public static void Remove(AssemblyLoadContext context)

Parameters

context AssemblyLoadContext

RemoveDependency(string)

Removes the dependency from all contexts. This includes isolated contexts.

public static void RemoveDependency(string dependency)

Parameters

dependency string
To top