C# Class LinFu.IoC.Scope

Represents a class that keeps track of all the disposable objects created within a service container and disposes them when the scope itself has been disposed.
Inheritance: IScope, IPostProcessor, IInitialize
Afficher le fichier Open project: philiplaureano/LinFu

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the services that have been created while the scope has been active.

Initialize ( IServiceContainer source ) : void

Inserts the scope into the target container.

PostProcess ( IServiceRequestResult result ) : void

Monitors the IServiceContainer for any services that are created and automatically disposes them once the IScope is disposed.

Method Details

Dispose() public méthode

Disposes the services that have been created while the scope has been active.
public Dispose ( ) : void
Résultat void

Initialize() public méthode

Inserts the scope into the target container.
public Initialize ( IServiceContainer source ) : void
source IServiceContainer The container that will hold the scope instance.
Résultat void

PostProcess() public méthode

Monitors the IServiceContainer for any services that are created and automatically disposes them once the IScope is disposed.
public PostProcess ( IServiceRequestResult result ) : void
result IServiceRequestResult The that describes the service being instantiated.
Résultat void