Created
April 27, 2011 11:34
-
-
Save kkozmic/944095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// full doco for fluent API here: http://docs.castleproject.org/Windsor.Registering-components-by-conventions.ashx | |
public void Install(IWindsorContainer container, IConfigurationStore store) | |
{ | |
container.Register( | |
Component.For<IPocessor>() | |
.ImplementedBy<SomeProcessor>() | |
.Named("processor") // do you really request this by name? If no you don't need to set the name | |
.ServiceOverrides( | |
ServiceOverride.ForKey("repositoryB") | |
.Eq("CastleInstallersInv.Repository.RepositoryB"))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment