C# Класс Castle.ActiveRecord.EventListenerContributor

Наследование: INHContributor
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Add ( EventListenerConfig config ) : EventListenerConfig

Adds an event listener configuration

Contribute ( NHibernate.Cfg.Configuration configuration ) : void

Configures the configuration with the registered listeners according the config

Get ( Type listenerType ) : EventListenerConfig

Returns the listener config for a specified listener type.

Remove ( Type listenerType ) : EventListenerConfig

Gets and removes the configuration for the type.

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

Метод Описание
CollectListeners ( Type type ) : Castle.ActiveRecord.EventListenerConfig[]
GetEventTypes ( Type listenerType ) : System.Type[]
GetExistingListeners ( NHibernate.Cfg.Configuration configuration, Type eventType ) : object[]
GetInstance ( EventListenerConfig config ) : object
SetListeners ( NHibernate.Cfg.Configuration configuration, Type eventType, Array listenersToSet ) : void

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

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

Adds an event listener configuration
When the configuration is null When the configuration is already present.
public Add ( EventListenerConfig config ) : EventListenerConfig
config EventListenerConfig the configuration to add
Результат EventListenerConfig

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

Configures the configuration with the registered listeners according the config
public Contribute ( NHibernate.Cfg.Configuration configuration ) : void
configuration NHibernate.Cfg.Configuration the configuration object to add the listeners to
Результат void

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

Returns the listener config for a specified listener type.
public Get ( Type listenerType ) : EventListenerConfig
listenerType System.Type the type to look for
Результат EventListenerConfig

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

Gets and removes the configuration for the type.
public Remove ( Type listenerType ) : EventListenerConfig
listenerType System.Type the type to look for
Результат EventListenerConfig