これがwinフォームクライアントの私の城の設定です
<components>
<component id="TestServiceClient"
type="TcpService.ITestService, TcpService"
wcfEndpointConfiguration="TestServiceClient_endpoint"/>
</components>
問題は、DuplexClientModel をサポートするように構成をセットアップするにはどうすればよいですか? これは、以下のコードを介してのみ行うことができます。
DuplexClientModel model = new DuplexClientModel
{
Endpoint = WcfEndpoint.ForContract<ITestServiceWithCallback>()
.BoundTo(new NetTcpBinding())
.At("net.tcp://localhost/TestServiceWithCallback")
}.Callback(callbackService);