C# Class Ninject.Activation.Strategies.ActivationCacheStrategy

Adds all activated instances to the activation cache.
Inheritance: IActivationStrategy
Afficher le fichier Open project: ninject/Ninject Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Activate() public méthode

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.
Résultat void

ActivationCacheStrategy() public méthode

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

Deactivate() public méthode

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.
Résultat void

Dispose() public méthode

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