2

Here is my castle config in win forms client

<components>
    <component id="TestServiceClient"
               type="TcpService.ITestService, TcpService"
               wcfEndpointConfiguration="TestServiceClient_endpoint"/>
</components>

The question is how can i setup my config to support DuplexClientModel? I can do this only via code as below.

        DuplexClientModel model = new DuplexClientModel
        {
            Endpoint = WcfEndpoint.ForContract<ITestServiceWithCallback>()
                .BoundTo(new NetTcpBinding())
                .At("net.tcp://localhost/TestServiceWithCallback")
        }.Callback(callbackService);
Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275
Hans Coco
  • 21
  • 1

0 Answers0