Show / Hide Table of Contents

Class AssemblyResolver

Handles AppDomain's AssemblyResolve event to be able to load assemblies dynamically in the LoadFrom context, but be able to reference the type from assemblies loaded in the Load context.

Inheritance
System.Object
AssemblyResolver
Implements
IAssemblyResolver
System.IDisposable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class AssemblyResolver : IAssemblyResolver, IDisposable

Methods

View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
Remarks

Calls Dispose(Boolean)

View Source

Dispose(Boolean)

Disposes the associated AssemblyResolver.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

When true, it is being called from the Dispose method.

View Source

LoadAssemblyFrom(String)

Registers the specified assembly and resolves the types in it when the AppDomain requests for it.

Declaration
public void LoadAssemblyFrom(string assemblyFilePath)
Parameters
Type Name Description
System.String assemblyFilePath

The path to the assemly to load in the LoadFrom context.

Remarks

This method does not load the assembly immediately, but lazily until someone requests a System.Type declared in the assembly.

Implements

IAssemblyResolver
System.IDisposable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX