C# Class Ninject.Activation.Caching.ActivationCache

Stores the objects that were activated
Inheritance: Ninject.Components.NinjectComponent, IActivationCache, IPruneable
Mostra file Open project: ninject/Ninject Class Usage Examples

Public Methods

Method Description
ActivationCache ( ICachePruner cachePruner ) : System.Collections.Generic

Initializes a new instance of the ActivationCache class.

AddActivatedInstance ( object instance ) : void

Adds an activated instance.

AddDeactivatedInstance ( object instance ) : void

Adds an deactivated instance.

Clear ( ) : void

Clears the cache.

IsActivated ( object instance ) : bool

Determines whether the specified instance is activated.

IsDeactivated ( object instance ) : bool

Determines whether the specified instance is deactivated.

Prune ( ) : void

Prunes this instance.

Private Methods

Method Description
RemoveDeadObjects ( HashSet objects ) : void

Removes all dead objects.

Method Details

ActivationCache() public method

Initializes a new instance of the ActivationCache class.
public ActivationCache ( ICachePruner cachePruner ) : System.Collections.Generic
cachePruner ICachePruner The cache pruner.
return System.Collections.Generic

AddActivatedInstance() public method

Adds an activated instance.
public AddActivatedInstance ( object instance ) : void
instance object The instance to be added.
return void

AddDeactivatedInstance() public method

Adds an deactivated instance.
public AddDeactivatedInstance ( object instance ) : void
instance object The instance to be added.
return void

Clear() public method

Clears the cache.
public Clear ( ) : void
return void

IsActivated() public method

Determines whether the specified instance is activated.
public IsActivated ( object instance ) : bool
instance object The instance.
return bool

IsDeactivated() public method

Determines whether the specified instance is deactivated.
public IsDeactivated ( object instance ) : bool
instance object The instance.
return bool

Prune() public method

Prunes this instance.
public Prune ( ) : void
return void