Skip to content

Instantly share code, notes, and snippets.

@serdarb
Created December 20, 2011 20:03
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 serdarb/1503030 to your computer and use it in GitHub Desktop.
Save serdarb/1503030 to your computer and use it in GitHub Desktop.
namespace DogmaticWcf.Web
{
public class ServiceInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.AddFacility<WcfFacility>();
container.Register(
Component.For<IMyService>()
.AsWcfClient(
new DefaultClientModel()
{
Endpoint = WcfEndpoint.BoundTo(new NetNamedPipeBinding())
.At("net.pipe://localhost/MyService")
}
)
.LifeStyle.PerWebRequest);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment