开发者

Castle configuration for Service with callback

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")
     开发者_Go百科   }.Callback(callbackService);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜