November Happy Hour will be moved to Thursday December 5th.

Class AssemblyList

Provides a list of assemblies that should be used when scanning for plugins / modules etc.

Inheritance
System.Object
AssemblyList
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Initialization
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public class AssemblyList

Constructors

AssemblyList()

Initializes a new instance of the AssemblyList class.

Declaration
public AssemblyList()
Remarks

Initializes the AllowedAssemblies with all assemblies in the app domain, except .NET Framework assemblies and assemblies with the PreventAssemblyScan attribute.

AssemblyList(Boolean)

Initializes a new instance of the AssemblyList class.

Declaration
public AssemblyList(bool forceBinFolderScan)
Parameters
Type Name Description
System.Boolean forceBinFolderScan

if set to true the bin folder will be scanned for loading assemblies.

AssemblyList(Boolean, String)

Initializes a new instance of the AssemblyList class.

Declaration
public AssemblyList(bool forceBinFolderScan, string relativeProbingPath)
Parameters
Type Name Description
System.Boolean forceBinFolderScan

if set to true the bin and probing folders will be scanned for loading assemblies.

System.String relativeProbingPath

The relative probing path where framework should scan assemblies.

Properties

AllowedAssemblies

Gets or sets the allowed assemblies.

Declaration
public IEnumerable<Assembly> AllowedAssemblies { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly>

The allowed assemblies.

Remarks

See the constructors for details on how the AllowedAssemblies gets populated.

Methods

AllScannableAssemblies(Boolean, String)

Loads and returns the list of alls the scannable assemblies.

Declaration
public static IEnumerable<Assembly> AllScannableAssemblies(bool forceBinFolderScan, string relativeProbingPath)
Parameters
Type Name Description
System.Boolean forceBinFolderScan

if set to true then bin and probing folders will be scanned for loading assemblies.

System.String relativeProbingPath

The relative probing path.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly>

Extension Methods