21.138. 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
21.138.1. Inheritance
21.138.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.138.3. Constructors
21.138.3.1. CollocatedAssemblyResolver(ILogger)
Initializes a new instance of the
public CollocatedAssemblyResolver(ILogger logger)
21.138.3.1.1. Parameters
logger ILogger
The logger to record debug and warning messages.
21.138.4. Methods
21.138.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)
21.138.4.1.1. Parameters
sender object?
The source of the event (unused).
args ResolveEventArgs
Contextual information about the assembly to resolve.
21.138.4.1.2. Returns
The resolved assembly if found; otherwise, null.