C# 클래스 Ninject.Activation.Caching.ActivationCache

Stores the objects that were activated
상속: Ninject.Components.NinjectComponent, IActivationCache, IPruneable
파일 보기 프로젝트 열기: ninject/Ninject 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
RemoveDeadObjects ( HashSet objects ) : void

Removes all dead objects.

메소드 상세

ActivationCache() 공개 메소드

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

AddActivatedInstance() 공개 메소드

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

AddDeactivatedInstance() 공개 메소드

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

Clear() 공개 메소드

Clears the cache.
public Clear ( ) : void
리턴 void

IsActivated() 공개 메소드

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

IsDeactivated() 공개 메소드

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

Prune() 공개 메소드

Prunes this instance.
public Prune ( ) : void
리턴 void