开发者

Castle configuration for Service with callback

开发者 https://www.devze.com 2023-03-13 06:34 出处:网络
Here is my castle config in win forms client <components> <component id=\"TestServiceClient\" type=\"TcpService.ITestService, TcpService\"

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

精彩评论

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

关注公众号