C# Class Ninject.Activation.Strategies.ActivationCacheStrategy

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

Public Methods

Method 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 method

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

ActivationCacheStrategy() public method

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

Deactivate() public method

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

Dispose() public method

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