Show / Hide Table of Contents

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.)

Inherited Members
IApplicationComponent.ComponentSID
IApplicationComponent.ComponentDirector
IApplicationComponent.ComponentCommonName
System.IDisposable.Dispose()
INamed.Name
IOrdered.Order
Namespace: NFX.ApplicationModel
Assembly: NFX.dll
Syntax
public interface IModule : IApplicationComponent, IDisposable, INamed, IOrdered

Properties

ChildModules

Enumerates an ordered collection of child modules and provides access by name

Declaration
IOrderedRegistry<IModule> ChildModules { get; }
Property Value
Type Description
IOrderedRegistry<IModule>

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

ModuleEffectiveLogLevel

Determines the effective log level for this module, taking it from parent if it is not defined on this level

Declaration
MessageType ModuleEffectiveLogLevel { get; }
Property Value
Type Description
MessageType

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
Type Description
IModule

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 Description
TModule
Type Parameters
Name Description
TModule

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 Description
TModule
Type Parameters
Name Description
TModule

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 Description
TModule
Type Parameters
Name Description
TModule

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 Description
TModule
Type Parameters
Name Description
TModule

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX