Show / Hide Table of Contents

Interface IModuleImplementation

Describes module implementation

Inherited Members
IModule.ParentModule
IModule.IsHardcodedModule
IModule.ChildModules
IModule.Get<TModule>(Func<TModule, Boolean>)
IModule.TryGet<TModule>(Func<TModule, Boolean>)
IModule.Get<TModule>(String)
IModule.TryGet<TModule>(String)
IModule.ModuleEffectiveLogLevel
IApplicationComponent.ComponentSID
IApplicationComponent.ComponentDirector
IApplicationComponent.ComponentCommonName
INamed.Name
IOrdered.Order
System.IDisposable.Dispose()
IConfigurable.Configure(IConfigSectionNode)
IInstrumentable.InstrumentationEnabled
IExternallyParameterized.ExternalParameters
IExternallyParameterized.ExternalParametersForGroups(String[])
IExternallyParameterized.ExternalGetParameter(String, Object, String[])
IExternallyParameterized.ExternalSetParameter(String, Object, String[])
Namespace: NFX.ApplicationModel
Assembly: NFX.dll
Syntax
public interface IModuleImplementation : IModule, IApplicationComponent, INamed, IOrdered, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized

Properties

ModuleLogLevel

Defines log level for this module, if not defined then the component logger uses the parent log level via the ModuleEffectiveLogLevel property

Declaration
MessageType? ModuleLogLevel { get; set; }
Property Value
Type Description
System.Nullable<MessageType>

Methods

ApplicationAfterInit(IApplication)

Called by the application container after all services have initialized. An implementation is expected to notify all subordinate (child) modules. The call is used to perform initialization tasks such as inter-service dependency fixups, initial data loads (e.g. initial cache fetch etc..) after everything has loaded in the application container. The implementation is expected to handle internal exceptions gracefully (i.e. use log etc.)

Declaration
void ApplicationAfterInit(IApplication application)
Parameters
Type Name Description
IApplication application

ApplicationBeforeCleanup(IApplication)

Called by the application container before services shutdown. An implementation is expected to notify all subordinate (child) modules. The call is used to perform finalization tasks such as inter-service dependency cleanups, buffer flushes etc. before the application container starts to shutdown. The implementation is expected to handle internal exceptions gracefully (i.e. use log etc.)

Declaration
void ApplicationBeforeCleanup(IApplication application)
Parameters
Type Name Description
IApplication application

ModuleLog(MessageType, String, String, Exception, Nullable<Guid>, String)

Writes a log message through logic module; returns the new log msg GDID for correlation, or GDID.Empty if no message was logged

Declaration
Guid ModuleLog(MessageType type, string from, string text, Exception error = null, Guid? related = default (Guid? ), string pars = null)
Parameters
Type Name Description
MessageType type
System.String from
System.String text
System.Exception error
System.Nullable<System.Guid> related
System.String pars
Returns
Type Description
System.Guid

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