23.132. Class CollocatedAssemblyResolver

Namespace: ArmoniK.Core.Common.DynamicLoading
Assembly: ArmoniK.Core.Common.dll

Resolves assemblies located in the same directory as the requesting assembly or this resolver. Maintains a list of directories where assemblies are likely to be found and attempts to load from them.

public class CollocatedAssemblyResolver

23.132.1. Inheritance

objectCollocatedAssemblyResolver

23.132.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

23.132.3. Constructors

23.132.3.1. CollocatedAssemblyResolver(ILogger)

Initializes a new instance of the class, setting up known directories for assembly resolution.

public CollocatedAssemblyResolver(ILogger logger)

23.132.3.1.1. Parameters

logger ILogger

The logger to record debug and warning messages.

23.132.4. Methods

23.132.4.1. AssemblyResolve(object?, ResolveEventArgs)

Attempts to resolve an assembly by searching the directories at the requesting assembly’s location.

public Assembly? AssemblyResolve(object? sender, ResolveEventArgs args)

23.132.4.1.1. Parameters

sender object?

The source of the event (unused).

args ResolveEventArgs

Contextual information about the assembly to resolve.

23.132.4.1.2. Returns

Assembly?

The resolved assembly if found; otherwise, null.