Class ModuleInfo
Defines the metadata that describes a module.
Inheritance
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 |
---|---|---|
System.String | name | The module's name. |
System.String | type | The module's type. |
ModuleInfo(String, String, String[])
Initializes a new instance of ModuleInfo.
Declaration
public ModuleInfo(string name, string type, params string[] dependsOn)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The module's name. |
System.String | type | The module System.Type's AssemblyQualifiedName. |
System.String[] | dependsOn | The modules this instance depends on. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | An System.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 |
---|---|
System.Collections.ObjectModel.Collection<System.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 |
---|---|
System.String | The name of the module. |
ModuleType
Gets or sets the module System.Type's AssemblyQualifiedName.
Declaration
public string ModuleType { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.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 |