C# Class Castle.ActiveRecord.EventListenerConfig

显示文件 Open project: shosca/ActiveRecord Class Usage Examples

Public Methods

Method Description
CreateSingletonInstance ( ) : void

Creates the singleton instance. If the instance is already set, the method does not replace it.

Equals ( object obj ) : bool

Compares the instance with another one for equality.

EventListenerConfig ( Type listenerType ) : System

Creates an instance for the given type

EventListenerConfig ( object listenerInstance ) : System

Creates an instance for the given instance

GetHashCode ( ) : int

Object infrastructure

SetSingletonInstance ( object instance ) : void

Sets the singleton instance. If the instance is already set, the method does not replace it.

Method Details

CreateSingletonInstance() public method

Creates the singleton instance. If the instance is already set, the method does not replace it.
public CreateSingletonInstance ( ) : void
return void

Equals() public method

Compares the instance with another one for equality.
public Equals ( object obj ) : bool
obj object The config to compare with
return bool

EventListenerConfig() public method

Creates an instance for the given type
public EventListenerConfig ( Type listenerType ) : System
listenerType System.Type The listener type to use
return System

EventListenerConfig() public method

Creates an instance for the given instance
public EventListenerConfig ( object listenerInstance ) : System
listenerInstance object The listener object to use
return System

GetHashCode() public method

Object infrastructure
public GetHashCode ( ) : int
return int

SetSingletonInstance() public method

Sets the singleton instance. If the instance is already set, the method does not replace it.
public SetSingletonInstance ( object instance ) : void
instance object the instance to set
return void