C# 클래스 Ninject.Activation.Strategies.ActivationCacheStrategy

Adds all activated instances to the activation cache.
상속: IActivationStrategy
파일 보기 프로젝트 열기: ninject/Ninject 1 사용 예제들

공개 메소드들

메소드 설명
Activate ( IContext context, InstanceReference reference ) : void

Contributes to the activation of the instance in the specified context.

ActivationCacheStrategy ( IActivationCache activationCache ) : System.Diagnostics.Contracts

Initializes a new instance of the ActivationCacheStrategy class.

Deactivate ( IContext context, InstanceReference reference ) : void

Contributes to the deactivation of the instance in the specified context.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

메소드 상세

Activate() 공개 메소드

Contributes to the activation of the instance in the specified context.
public Activate ( IContext context, InstanceReference reference ) : void
context IContext The context.
reference InstanceReference A reference to the instance being activated.
리턴 void

ActivationCacheStrategy() 공개 메소드

Initializes a new instance of the ActivationCacheStrategy class.
public ActivationCacheStrategy ( IActivationCache activationCache ) : System.Diagnostics.Contracts
activationCache IActivationCache The activation cache.
리턴 System.Diagnostics.Contracts

Deactivate() 공개 메소드

Contributes to the deactivation of the instance in the specified context.
public Deactivate ( IContext context, InstanceReference reference ) : void
context IContext The context.
reference InstanceReference A reference to the instance being deactivated.
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void