C# Класс Ninject.Activation.Strategies.ActivationCacheStrategy

Adds all activated instances to the activation cache.
Наследование: IActivationStrategy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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