Castle Windsor XML configuration for WCF proxy using WCF Integration Facility

Posted by andreyg on Stack Overflow See other posts from Stack Overflow or by andreyg
Published on 2010-04-23T09:59:10Z Indexed on 2010/05/11 14:34 UTC
Read the original article Hit count: 388

Hi everybody!

Currently, we use programming registration of WCF proxies in Windsor container using WCF Integration Facility. For example:

container.Register(
    Component.For<CalculatorSoap>()
      .Named("calculatorSoap")
      .LifeStyle.Transient
      .ActAs(new DefaultClientModel
      {
        Endpoint = WcfEndpoint.FromConfiguration("CalculatorSoap").LogMessages()
      }
      )
      );

Is there any way to do the same via Windsor XML configuration file. I can't find any sample of this on google.

Thanks in advance

© Stack Overflow or respective owner

Related posts about castle-windsor

Related posts about inversion-of-control