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);
精彩评论