2

これが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);
4

0 に答える 0