C# Class Castle.MicroKernel.Lifestyle.Pool.DefaultPool

Inheritance: IPool, IDisposable
显示文件 Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
DefaultPool ( int initialsize, int maxsize, IComponentActivator componentActivator ) : System
Dispose ( ) : void
Release ( object instance ) : void
Request ( CreationContext context ) : object

Private Methods

Method Description
InitPool ( ) : void

Initializes the pool to a initial size by requesting n components and then releasing them.

Method Details

DefaultPool() public method

public DefaultPool ( int initialsize, int maxsize, IComponentActivator componentActivator ) : System
initialsize int
maxsize int
componentActivator IComponentActivator
return System

Dispose() public method

public Dispose ( ) : void
return void

Release() public method

public Release ( object instance ) : void
instance object
return void

Request() public method

public Request ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
return object