Interface IModuleCatalog
This is the expected catalog definition for the ModuleManager. The ModuleCatalog holds information about the modules that can be used by the application. Each module is described in a ModuleInfo class, that records the name, type and location of the module.
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IModuleCatalog
  Properties
View SourceModules
Gets all the ModuleInfo classes that are in the ModuleCatalog.
Declaration
IEnumerable<ModuleInfo> Modules { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ModuleInfo> | 
Methods
View SourceAddModule(ModuleInfo)
Adds a ModuleInfo to the ModuleCatalog.
Declaration
void AddModule(ModuleInfo moduleInfo)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ModuleInfo | moduleInfo | The ModuleInfo to add.  | 
      
CompleteListWithDependencies(IEnumerable<ModuleInfo>)
Returns the collection of ModuleInfos that contain both the ModuleInfos in
modules, but also all the modules they depend on.
Declaration
IEnumerable<ModuleInfo> CompleteListWithDependencies(IEnumerable<ModuleInfo> modules)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<ModuleInfo> | modules | The modules to get the dependencies for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ModuleInfo> | A collection of ModuleInfo that contains both all ModuleInfos in   | 
      
GetDependentModules(ModuleInfo)
Return the list of ModuleInfos that moduleInfo depends on.
Declaration
IEnumerable<ModuleInfo> GetDependentModules(ModuleInfo moduleInfo)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ModuleInfo | moduleInfo | The ModuleInfo to get the  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ModuleInfo> | An enumeration of ModuleInfo that   | 
      
Initialize()
Initializes the catalog, which may load and validate the modules.
Declaration
void Initialize()