Skip to content

Instantly share code, notes, and snippets.

@kkozmic
Created October 29, 2009 19:19
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/221717 to your computer and use it in GitHub Desktop.
Save kkozmic/221717 to your computer and use it in GitHub Desktop.
Container = new WindsorContainer()
.AddFacility<WcfFacility>()
.Register(
Component.For<IServiceBehavior>()
.ImplementedBy<ServiceMetadataBehavior>()
.Parameters(Parameter.ForKey("HttpGetEnabled").Eq("true"))
.LifeStyle.Transient,
Component.For<IMyService>()
.Named("my service")
.ImplementedBy<TheService>()
.DependsOn(new {prefix = "A WCF Facility Service says"}),
Component.For<IMyOtherService>()
.Named("my other service")
.ImplementedBy<TheOtherService>()
.DependsOn(new {prefix = "A WCF Facility Service says"}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment