C# 클래스 Castle.Windsor.Adapters.ComponentModel.ContainerWrapper

Implementation of IContainerAdapter that does not assume ownership of the wrapped IWindsorContainer.
상속: IContainerAdapter
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DisposeComponent void
DisposeContainer void
GetServiceName String
HasService bool
IsIntrinsicService bool
OnComponentUnregistered void
RaiseDisposed void
RegisterAdapterWithKernel void
Remove void

공개 메소드들

메소드 설명
Add ( IComponent component ) : void

Adds the specified IComponent to the IContainer at the end of the list.

Add ( IComponent component, String name ) : void

Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component.

AddService ( Type serviceType, ServiceCreatorCallback callback ) : void

Adds the specified service to the service container.

AddService ( Type serviceType, ServiceCreatorCallback callback, bool promote ) : void

Adds the specified service to the service container, and optionally promotes the service to parent service containers.

AddService ( Type serviceType, object serviceInstance ) : void

Adds the specified service to the service container.

AddService ( Type serviceType, object serviceInstance, bool promote ) : void

Adds the specified service to the service container, and optionally promotes the service to any parent service containers.

ContainerWrapper ( IWindsorContainer container ) : System

Constructs an initial ContainerWrapper.

ContainerWrapper ( IWindsorContainer container, IServiceProvider parentProvider ) : System

Constructs an initial ContainerWrapper.

Dispose ( ) : void

Releases the resources used by the component.

GetService ( Type serviceType ) : object

Gets the service object of the specified type.

Remove ( IComponent component ) : void

Removes a component from the IContainer.

RemoveService ( Type serviceType ) : void

Removes the specified service type from the service container.

RemoveService ( Type serviceType, bool promote ) : void

Removes the specified service type from the service container, and optionally promotes the service to parent service containers.

보호된 메소드들

메소드 설명
CreateDefaultWindsorContainer ( ) : IWindsorContainer
CreateSite ( IComponent component, String name ) : IContainerAdapterSite
Dispose ( bool disposing ) : void

Releases the resources used by the component.

InternalDisposeContainer ( ) : void

비공개 메소드들

메소드 설명
DisposeComponent ( ) : void
DisposeContainer ( ) : void
GetServiceName ( Type serviceType ) : String
HasService ( Type serviceType ) : bool

Determins if the specified service type exists in the service container.

IsIntrinsicService ( Type serviceType ) : bool

Determins if the service type represents an intrinsic service.

OnComponentUnregistered ( String key, IHandler handler ) : void
RaiseDisposed ( ) : void
RegisterAdapterWithKernel ( ) : void
Remove ( IComponent component, bool fromKernel ) : void

메소드 상세

Add() 공개 메소드

Adds the specified IComponent to the IContainer at the end of the list.
public Add ( IComponent component ) : void
component IComponent The to add.
리턴 void

Add() 공개 메소드

Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component.
public Add ( IComponent component, String name ) : void
component IComponent The to add.
name String The unique, case-insensitive name to assign to the component, or null.
리턴 void

AddService() 공개 메소드

Adds the specified service to the service container.
public AddService ( Type serviceType, ServiceCreatorCallback callback ) : void
serviceType Type The type of service to add.
callback ServiceCreatorCallback A callback object that is used to create the service.
리턴 void

AddService() 공개 메소드

Adds the specified service to the service container, and optionally promotes the service to parent service containers.
public AddService ( Type serviceType, ServiceCreatorCallback callback, bool promote ) : void
serviceType Type The type of service to add.
callback ServiceCreatorCallback A callback object that is used to create the service.
promote bool true to promote this request to any parent service containers.
리턴 void

AddService() 공개 메소드

Adds the specified service to the service container.
public AddService ( Type serviceType, object serviceInstance ) : void
serviceType Type The type of service to add.
serviceInstance object The instance of the service to add.
리턴 void

AddService() 공개 메소드

Adds the specified service to the service container, and optionally promotes the service to any parent service containers.
public AddService ( Type serviceType, object serviceInstance, bool promote ) : void
serviceType Type The type of service to add.
serviceInstance object The instance of the service to add.
promote bool true to promote this request to any parent service containers.
리턴 void

ContainerWrapper() 공개 메소드

Constructs an initial ContainerWrapper.
public ContainerWrapper ( IWindsorContainer container ) : System
container IWindsorContainer The to adapt.
리턴 System

ContainerWrapper() 공개 메소드

Constructs an initial ContainerWrapper.
public ContainerWrapper ( IWindsorContainer container, IServiceProvider parentProvider ) : System
container IWindsorContainer The to adapt.
parentProvider IServiceProvider The parent .
리턴 System

CreateDefaultWindsorContainer() 보호된 메소드

protected CreateDefaultWindsorContainer ( ) : IWindsorContainer
리턴 IWindsorContainer

CreateSite() 보호된 메소드

protected CreateSite ( IComponent component, String name ) : IContainerAdapterSite
component IComponent
name String
리턴 IContainerAdapterSite

Dispose() 공개 메소드

Releases the resources used by the component.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases the resources used by the component.
protected Dispose ( bool disposing ) : void
disposing bool true if disposing.
리턴 void

GetService() 공개 메소드

Gets the service object of the specified type.
public GetService ( Type serviceType ) : object
serviceType Type The type of service.
리턴 object

InternalDisposeContainer() 보호된 메소드

protected InternalDisposeContainer ( ) : void
리턴 void

Remove() 공개 메소드

Removes a component from the IContainer.
public Remove ( IComponent component ) : void
component IComponent The to remove
리턴 void

RemoveService() 공개 메소드

Removes the specified service type from the service container.
public RemoveService ( Type serviceType ) : void
serviceType Type The type of service to remove.
리턴 void

RemoveService() 공개 메소드

Removes the specified service type from the service container, and optionally promotes the service to parent service containers.
public RemoveService ( Type serviceType, bool promote ) : void
serviceType Type The type of service to remove.
promote bool true to promote this request to any parent service containers.
리턴 void