Interface IModuleFinder
Discovers modules in a folder structure and registers them into the application
Namespace: EPiServer.Shell.Modules
Assembly: EPiServer.Shell.dll
Version: 9.12.2Syntax
public interface IModuleFinder
Remarks
This class is used internally by EPiServer and should not be instantiated.
Methods
GetModuleInDirectory(String, String, IEnumerable<String>, AutoDiscoveryLevel, String)
Extracts and loads a module in a directory
Declaration
ShellModule GetModuleInDirectory(string routeBasePath, string moduleResourcePath, IEnumerable<string> configuredAssemblyNames, AutoDiscoveryLevel discoveryMode, string configuredName)
Parameters
Type | Name | Description |
---|---|---|
System.String | routeBasePath | The base path for the routes. |
System.String | moduleResourcePath | The virtual path to module resources |
System.Collections.Generic.IEnumerable<System.String> | configuredAssemblyNames | Assemblies that are always loaded and associated with the module. |
AutoDiscoveryLevel | discoveryMode | What level the auto discovery should be. |
System.String | configuredName | Configured module name. |
Returns
Type | Description |
---|---|
ShellModule | A shell module. |
GetModulesInSubdirectories(String, AutoDiscoveryLevel)
Get modules from sub-directories of the supplied directory.
Declaration
IList<ShellModule> GetModulesInSubdirectories(string rootPath, AutoDiscoveryLevel discoveryMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootPath | The root folder for modules to discover. |
AutoDiscoveryLevel | discoveryMode | The level to use for the auto discovery. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<ShellModule> | A list of shell modules |