C# Class 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)
Inheritance: IContributeComponentModelConstruction
Show file Open project: mlidbom/Composable.Monolithic

Public Methods

Method Description
LifestyleRegistrationMutator ( LifestyleType originalLifestyle = LifestyleType.PerWebRequest, LifestyleType newLifestyleType = LifestyleType.Scoped ) : Castle.Core
ProcessModel ( IKernel kernel, ComponentModel model ) : void

Method Details

LifestyleRegistrationMutator() public method

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

ProcessModel() public method

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