C# 클래스 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.
상속: IScope, IPostProcessor, IInitialize
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
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.

메소드 상세

Dispose() 공개 메소드

Disposes the services that have been created while the scope has been active.
public Dispose ( ) : void
리턴 void

Initialize() 공개 메소드

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

PostProcess() 공개 메소드

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.
리턴 void