C# Class Ninject.Activation.Caching.GarbageCollectionCachePruner

Uses a Timer and some WeakReference magic to poll the garbage collector to see if it has run.
Inheritance: Ninject.Components.NinjectComponent, ICachePruner
Afficher le fichier Open project: Qiredev/ninject

Méthodes publiques

Méthode Description
Dispose ( bool disposing ) : void

Releases resources held by the object.

Start ( IPruneable pruneable ) : void

Starts pruning the specified pruneable based on the rules of the pruner.

Stop ( ) : void

Stops pruning.

Private Methods

Méthode Description
GetTimeoutInMilliseconds ( ) : int
PruneCacheIfGarbageCollectorHasRun ( object state ) : void

Method Details

Dispose() public méthode

Releases resources held by the object.
public Dispose ( bool disposing ) : void
disposing bool
Résultat void

Start() public méthode

Starts pruning the specified pruneable based on the rules of the pruner.
public Start ( IPruneable pruneable ) : void
pruneable IPruneable The pruneable that will be pruned.
Résultat void

Stop() public méthode

Stops pruning.
public Stop ( ) : void
Résultat void