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
Afficher le fichier Open project: mlidbom/Composable.Monolithic

Méthodes publiques

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

Method Details

LifestyleRegistrationMutator() public méthode

public LifestyleRegistrationMutator ( LifestyleType originalLifestyle = LifestyleType.PerWebRequest, LifestyleType newLifestyleType = LifestyleType.Scoped ) : Castle.Core
originalLifestyle LifestyleType
newLifestyleType LifestyleType
Résultat Castle.Core

ProcessModel() public méthode

public ProcessModel ( IKernel kernel, ComponentModel model ) : void
kernel IKernel
model Castle.Core.ComponentModel
Résultat void