C# Класс Zetbox.App.Extensions.BaseCustomActionsManager

A utility class implementing basic operations and caching needed by all CustomActionsManagers.
Наследование: ICustomActionsManager
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Log log4net.ILog
cfg ZetboxConfig

Открытые методы

Метод Описание
Init ( IReadOnlyZetboxContext ctx ) : void

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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AttachEvents() защищенный Метод

Attach static events using Metadata
protected AttachEvents ( MethodInfo clrMethod, EventInfo clrEvent ) : void
clrMethod System.Reflection.MethodInfo
clrEvent System.Reflection.EventInfo
Результат void

BaseCustomActionsManager() защищенный Метод

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
Результат System

Init() публичный Метод

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
Результат void

Описание свойств

Log защищенное статическое свойство

protected static log4net.ILog Log
Результат log4net.ILog

cfg защищенное свойство

protected ZetboxConfig cfg
Результат ZetboxConfig