C# 클래스 Composable.Windsor.LifestyleRegistrationMutator

Add this mutator to the Container using container.Kernel.ComponentModelBuilder.AddContributor(new LifestyleRegistrationMutator()); in order to allow PerWebRequest lifestyled Components to be treated as Scoped instead (this makes it work with NServiceBus and unit test)
상속: IContributeComponentModelConstruction
파일 보기 프로젝트 열기: mlidbom/Composable.Monolithic

공개 메소드들

메소드 설명
LifestyleRegistrationMutator ( LifestyleType originalLifestyle = LifestyleType.PerWebRequest, LifestyleType newLifestyleType = LifestyleType.Scoped ) : Castle.Core
ProcessModel ( IKernel kernel, ComponentModel model ) : void

메소드 상세

LifestyleRegistrationMutator() 공개 메소드

public LifestyleRegistrationMutator ( LifestyleType originalLifestyle = LifestyleType.PerWebRequest, LifestyleType newLifestyleType = LifestyleType.Scoped ) : Castle.Core
originalLifestyle LifestyleType
newLifestyleType LifestyleType
리턴 Castle.Core

ProcessModel() 공개 메소드

public ProcessModel ( IKernel kernel, ComponentModel model ) : void
kernel IKernel
model Castle.Core.ComponentModel
리턴 void