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: 8.11.0
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(AssemblyElementCollection)

Initializes a new instance of the AssemblyList class.

Declaration
public AssemblyList(AssemblyElementCollection assemblyConfiguration)
Parameters
Type Name Description
AssemblyElementCollection assemblyConfiguration

The assembly configuration.

Remarks

Does the same thing as the default constructor, but also filters the list of allowed assemblies based on the <scanAssembly> configuration section.

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.