Table of Contents

Class PluginAssemblyLoadContext

Namespace
DotCompute.Plugins.Core
Assembly
DotCompute.Plugins.dll

Assembly load context for plugin isolation.

public class PluginAssemblyLoadContext : AssemblyLoadContext
Inheritance
PluginAssemblyLoadContext
Inherited Members

Constructors

PluginAssemblyLoadContext(string)

Assembly load context for plugin isolation.

public PluginAssemblyLoadContext(string pluginPath)

Parameters

pluginPath string

Methods

Load(AssemblyName)

When overridden in a derived class, allows an assembly to be resolved based on its AssemblyName.

protected override Assembly? Load(AssemblyName assemblyName)

Parameters

assemblyName AssemblyName

The object that describes the assembly to be resolved.

Returns

Assembly

The resolved assembly, or null.

LoadUnmanagedDll(string)

Allows derived class to load an unmanaged library by name.

protected override nint LoadUnmanagedDll(string unmanagedDllName)

Parameters

unmanagedDllName string

Name of the unmanaged library. Typically this is the filename without its path or extensions.

Returns

nint

A handle to the loaded library, or Zero.