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
Datei anzeigen Open project: Qiredev/ninject

Public Methods

Method 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

Method Description
GetTimeoutInMilliseconds ( ) : int
PruneCacheIfGarbageCollectorHasRun ( object state ) : void

Method Details

Dispose() public method

Releases resources held by the object.
public Dispose ( bool disposing ) : void
disposing bool
return void

Start() public method

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.
return void

Stop() public method

Stops pruning.
public Stop ( ) : void
return void