Class ModuleInfoGroupExtensions
Defines extension methods for the ModuleInfoGroup class.
Inheritance
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public static class ModuleInfoGroupExtensions
Methods
View SourceAddModule(ModuleInfoGroup, String, Type, String[])
Adds a new module that is statically referenced to the specified module info group.
Declaration
public static ModuleInfoGroup AddModule(this ModuleInfoGroup moduleInfoGroup, string moduleName, Type moduleType, params string[] dependsOn)
Parameters
Type | Name | Description |
---|---|---|
ModuleInfoGroup | moduleInfoGroup | The group where to add the module info in. |
System.String | moduleName | The name for the module. |
System.Type | moduleType | The type for the module. This type should be a descendant of IModule. |
System.String[] | dependsOn | The names for the modules that this module depends on. |
Returns
Type | Description |
---|---|
ModuleInfoGroup | Returns the instance of the passed in module info group, to provide a fluid interface. |
AddModule(ModuleInfoGroup, Type, String[])
Adds a new module that is statically referenced to the specified module info group.
Declaration
public static ModuleInfoGroup AddModule(this ModuleInfoGroup moduleInfoGroup, Type moduleType, params string[] dependsOn)
Parameters
Type | Name | Description |
---|---|---|
ModuleInfoGroup | moduleInfoGroup | The group where to add the module info in. |
System.Type | moduleType | The type for the module. This type should be a descendant of IModule. |
System.String[] | dependsOn | The names for the modules that this module depends on. |
Returns
Type | Description |
---|---|
ModuleInfoGroup | Returns the instance of the passed in module info group, to provide a fluid interface. |
Remarks
The name of the module will be the type name.