Class AssemblyList
Provides a list of assemblies that should be used when scanning for plugins / modules etc.
Inheritance
Inherited Members
Namespace: EPiServer.Framework.Initialization
Assembly: EPiServer.Framework.dll
Version: 7.19.2Syntax
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 |
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 |
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
AllowedAssembliesForProduct(String)
Gets the allowed assemblies for a specific product.
Declaration
[Obsolete("The 'Allow scan for product' is a concept that has been abandoned and should not be used.")]
public IEnumerable<Assembly> AllowedAssembliesForProduct(string productName)
Parameters
Type | Name | Description |
---|---|---|
System.String | productName | Name of the product. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | The assemblies that you are allowed to scan for a specific product. |
Remarks
The assemblies returned from this method will be a subset of AllowedAssemblies, based on filtering on the AllowAssemblyScan attribute.