c# - how to resolve a proxy class in Castle Windsor -
I have a WCF service that I am trying to use Castle Windsor. This is used to look like registration:
container.Register (Component.For & LT; IBatchDataService & gt; () .AsWcfClient (WCFEndpoint .FromConfiguration ( "Internal.IBatchDataService") ) .LifestyeTransient ()) I have now created a proxy that remains in the process. It exposes the same interface (IBDData service) and takes the context of the WCF service as a constructor logic. I resolve it can to establish the Windsor have to be solved in order to use the proxy class to another class but proxy class WCF service I have right now:
container Krjistr (Componentkfor & lt; Ibtcdtsservis & gt; () Kimplimentedbi & lt; Batcdtsservisekliant & gt; ()); The new proxy class should resolve.
Try this: ...
container.Register (Component.For & LT; IBatchDataService & gt; () AsWcfClient (WCFEndpoint.FromConfiguration ( "Internal.IBatchDataService")) LifestyeTransient () Name ( "wcfBatchDataService"), component Kfor & lt; Ibtcdtsservis & gt; () Implimentedbi. & lt; Batcdtsservisekliant & gt ;. () Asdefaolt () Dependson (Dipendensikoncomponent ( "Knstrctorprmetername", "Vkfbatcdtsservis")) < p> where name ConstructorParameterName. the IBatchDataService parameters on its creator. I do not have it run a compiler so I know it works for you please. Thanks, Marwijn.
Comments
Post a Comment