Skip to content

Instantly share code, notes, and snippets.

@kkozmic
Created April 27, 2011 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkozmic/944095 to your computer and use it in GitHub Desktop.
Save kkozmic/944095 to your computer and use it in GitHub Desktop.
// 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