Class ModuleInfo
Defines the metadata that describes a module.
Implements
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
[Serializable]
public class ModuleInfo : IModuleCatalogItem
Constructors
View SourceModuleInfo()
Initializes a new empty instance of ModuleInfo.
Declaration
public ModuleInfo()
ModuleInfo(string, string)
Initializes a new instance of ModuleInfo.
Declaration
public ModuleInfo(string name, string type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The module's name. |
| string | type | The module's type. |
ModuleInfo(string, string, params string[])
Initializes a new instance of ModuleInfo.
Declaration
public ModuleInfo(string name, string type, params string[] dependsOn)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The module's name. |
| string | type | The module Type's AssemblyQualifiedName. |
| string[] | dependsOn | The modules this instance depends on. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | An ArgumentNullException is thrown if |
Properties
View SourceDependsOn
Gets or sets the list of modules that this module depends upon.
Declaration
public Collection<string> DependsOn { get; set; }
Property Value
| Type | Description |
|---|---|
| Collection<string> | The list of modules that this module depends upon. |
InitializationMode
Specifies on which stage the Module will be initialized.
Declaration
public InitializationMode InitializationMode { get; set; }
Property Value
| Type | Description |
|---|---|
| InitializationMode |
ModuleName
Gets or sets the name of the module.
Declaration
public string ModuleName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The name of the module. |
ModuleType
Gets or sets the module Type's AssemblyQualifiedName.
Declaration
public string ModuleType { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The type of the module. |
Ref
Reference to the location of the module assembly.
Declaration
public string Ref { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Examples
The following are examples of valid Ref values: http://myDomain/ClientBin/MyModules.xap for remote module in Silverlight file://c:/MyProject/Modules/MyModule.dll for a loose DLL in WPF.
View SourceState
Gets or sets the state of the ModuleInfo with regards to the module loading and initialization process.
Declaration
public ModuleState State { get; set; }
Property Value
| Type | Description |
|---|---|
| ModuleState |