Show / Hide Table of Contents

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 Source

Modules

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 Source

AddModule(ModuleInfo)

Adds a ModuleInfo to the ModuleCatalog.

Declaration
void AddModule(ModuleInfo moduleInfo)
Parameters
Type Name Description
ModuleInfo moduleInfo

The ModuleInfo to add.

View Source

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 modules and also all the ModuleInfo they depend on.

View Source

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 moduleInfo depends on.

View Source

Initialize()

Initializes the catalog, which may load and validate the modules.

Declaration
void Initialize()

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX