C# 클래스 Composable.Windsor.KeyReplacementHandlerSelector

When multiple registrations to the same type are made this HandlerSelector returns the service registered with the 'replacementKey' when the container is asked for a service with 'originalKey' Use it by adding it to the container at wire-up with container.Kernel.AddHandlerSelector(new KeyReplacementHandlerSelector(typeof([ComponentType]),"originalKey", "replacementKey"));
상속: IHandlerSelector
파일 보기 프로젝트 열기: mlidbom/Composable.Monolithic

공개 메소드들

메소드 설명
HasOpinionAbout ( string key, Type service ) : bool
KeyReplacementHandlerSelector ( Type serviceType, string originalKey, string replacementKey ) : System
SelectHandler ( string key, Type service, IHandler handlers ) : IHandler

메소드 상세

HasOpinionAbout() 공개 메소드

public HasOpinionAbout ( string key, Type service ) : bool
key string
service System.Type
리턴 bool

KeyReplacementHandlerSelector() 공개 메소드

public KeyReplacementHandlerSelector ( Type serviceType, string originalKey, string replacementKey ) : System
serviceType System.Type
originalKey string
replacementKey string
리턴 System

SelectHandler() 공개 메소드

public SelectHandler ( string key, Type service, IHandler handlers ) : IHandler
key string
service System.Type
handlers IHandler
리턴 IHandler