C# Class Zetbox.App.Extensions.BaseCustomActionsManager

A utility class implementing basic operations and caching needed by all CustomActionsManagers.
Inheritance: ICustomActionsManager
Mostra file Open project: daszat/zetbox

Protected Properties

Property Type Description
Log log4net.ILog
cfg ZetboxConfig

Public Methods

Method Description
Init ( IReadOnlyZetboxContext ctx ) : void

Initializes this CustomActionsManager. This method is thread-safe and won't do anything if the ActionsManager is already initialized.

Protected Methods

Method Description
AttachEvents ( MethodInfo clrMethod, EventInfo clrEvent ) : void

Attach static events using Metadata

BaseCustomActionsManager ( ILifetimeScope container, string extraSuffix, IEnumerable assemblies ) : System

Initialises a new instance of the BaseCustomActionsManager class using the specified extra suffix and the assembly of the actual type of this class.

Private Methods

Method Description
CreateDefaultMethodInvocations ( Type implType, DataType dt, string methodName, Type paramTypes ) : void
CreateInvokeInfo ( Type implType, MethodInfo clrMethod, string eventName ) : void
CreateInvokeInfos ( DataType dt, Type implType ) : void
CreateInvokeInfosForAssembly ( DataType objClass ) : void
CreateInvokeInfosForDataTypes ( IReadOnlyZetboxContext metaCtx ) : void

Initializes caches for the provider of the given Context

CreatePropertyInvocations ( Type implType, System.Property prop, string methodPrefix, string invocationType, Type paramTypes ) : void
FindEventBasedMethodAttribute ( Method method, Type implType ) : EventBasedMethodAttribute
FindEventBasedMethodAttribute ( Method method, string execSuffix, Type implType ) : EventBasedMethodAttribute
GetAllMethods ( DataType dt ) : List
ReflectMethodsAndAssets ( IReadOnlyZetboxContext metaCtx ) : void

Method Details

AttachEvents() protected method

Attach static events using Metadata
protected AttachEvents ( MethodInfo clrMethod, EventInfo clrEvent ) : void
clrMethod System.Reflection.MethodInfo
clrEvent System.Reflection.EventInfo
return void

BaseCustomActionsManager() protected method

Initialises a new instance of the BaseCustomActionsManager class using the specified extra suffix and the assembly of the actual type of this class.
protected BaseCustomActionsManager ( ILifetimeScope container, string extraSuffix, IEnumerable assemblies ) : System
container ILifetimeScope
extraSuffix string
assemblies IEnumerable
return System

Init() public method

Initializes this CustomActionsManager. This method is thread-safe and won't do anything if the ActionsManager is already initialized.
public Init ( IReadOnlyZetboxContext ctx ) : void
ctx IReadOnlyZetboxContext
return void

Property Details

Log protected_oe static_oe property

protected static log4net.ILog Log
return log4net.ILog

cfg protected_oe property

protected ZetboxConfig cfg
return ZetboxConfig