Interface IModule
Describes application modules - entities that contain business domain logic of the application or
general system logic (e.g. financial logic, complex image rendering service, social network mix-in etc.)
Assembly: Azos.dll
Syntax
public interface IModule : IApplicationComponent, INamed, IOrdered
Properties
ChildModules
Enumerates an ordered collection of child modules and provides access by name
Declaration
IOrderedRegistry<IModule> ChildModules { get; }
Property Value
IsHardcodedModule
Returns true when the module is injected in the parent context by the code, not configuration script
Declaration
bool IsHardcodedModule { get; }
Property Value
Type |
Description |
System.Boolean |
|
ParentModule
References a parent logic module, or null if this is a root module injected in the application container
Declaration
IModule ParentModule { get; }
Property Value
Methods
Get<TModule>(Func<TModule, Boolean>)
Gets a child module of the specified TModule type optionally applying a filter.
If module is not found then exception is thrown. Contrast with TryGet()
Declaration
TModule Get<TModule>(Func<TModule, bool> filter = null)
where TModule : class, IModule
Parameters
Type |
Name |
Description |
System.Func<TModule, System.Boolean> |
filter |
|
Returns
Type Parameters
Get<TModule>(String)
Gets a child module of the specified TModule type with the specified name.
If module is not found then exception is thrown. Contrast with TryGet()
Declaration
TModule Get<TModule>(string name)
where TModule : class, IModule
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type Parameters
TryGet<TModule>(Func<TModule, Boolean>)
Tries to get a child module of the specified TModule type optionally applying a filter.
If module is not found then returns null. Contrast with Get()
Declaration
TModule TryGet<TModule>(Func<TModule, bool> filter = null)
where TModule : class, IModule
Parameters
Type |
Name |
Description |
System.Func<TModule, System.Boolean> |
filter |
|
Returns
Type Parameters
TryGet<TModule>(String)
Tries to get a child module of the specified TModule type with the specified name.
If module is not found then returns null. Contrast with Get()
Declaration
TModule TryGet<TModule>(string name)
where TModule : class, IModule
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type Parameters
Extension Methods