开发者

TcpConnection and WcfProxy

开发者 https://www.devze.com 2023-01-19 04:57 出处:网络
When I dispose wcf client pro开发者_开发百科xy, is TcpConnection still available? (netTcpBinding has been used)The connection itself can be available in some special configurations with connection po

When I dispose wcf client pro开发者_开发百科xy, is TcpConnection still available?

(netTcpBinding has been used)


The connection itself can be available in some special configurations with connection pooling but you are probably asking if the service instance/session is still available. The answer is no. Lifetime of proxy and its related service instance are coupled (+ timeouts can affect lifetime). So when you close the proxy you can't use the instance ("connection") any more.

0

精彩评论

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