C# Class Ninject.Activation.Caching.ActivationCache

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

Méthodes publiques

Méthode 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

Méthode Description
RemoveDeadObjects ( HashSet objects ) : void

Removes all dead objects.

Method Details

ActivationCache() public méthode

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

AddActivatedInstance() public méthode

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

AddDeactivatedInstance() public méthode

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

Clear() public méthode

Clears the cache.
public Clear ( ) : void
Résultat void

IsActivated() public méthode

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

IsDeactivated() public méthode

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

Prune() public méthode

Prunes this instance.
public Prune ( ) : void
Résultat void