C# Class Castle.MicroKernel.Facilities.AbstractFacility

Base class for facilities.
Inheritance: IFacility, IDisposable
ファイルを表示 Open project: castleproject/Windsor

Protected Methods

Method Description
Dispose ( ) : void

Performs the tasks associated with freeing, releasing, or resetting the facility resources.

It can be overriden.

Init ( ) : void

The custom initialization for the Facility.

It must be overridden.

Private Methods

Method Description
IDisposable ( ) : void
IFacility ( ) : void

Terminates the Facility, invokes the Dispose method and sets the Kernel to a null reference.

IFacility ( IKernel kernel, IConfiguration facilityConfig ) : void

Initializes the facility. First it performs the initialization common for all facilities, setting the Kernel and the FacilityConfig. After it, the Init method is invoked and the custom initilization is perfomed.

Method Details

Dispose() protected method

Performs the tasks associated with freeing, releasing, or resetting the facility resources.
It can be overriden.
protected Dispose ( ) : void
return void

Init() protected abstract method

The custom initialization for the Facility.
It must be overridden.
protected abstract Init ( ) : void
return void