Class ModuleLocator
Locates modules of type IModule.
Inheritance
System.Object
ModuleLocator
Implements
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
[Export(typeof(IModuleLocator))]
public class ModuleLocator : IModuleLocator
Methods
View SourceGetModules()
Gets all available modules.
Declaration
public IEnumerable<IModule> GetModules()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IModule> | The list of available modules. |
GetModules(Func<IModuleExport, Boolean>)
Gets available modules that match a given filter.
Declaration
public IEnumerable<IModule> GetModules(Func<IModuleExport, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<IModuleExport, System.Boolean> | predicate | A filter for the modules. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IModule> | The list of available modules that match |