爲什麼這個具體的WCF客戶端實現確實實現了IDisposable,但不是作爲.net的一部分爲每個wcf客戶端提供的默認開箱即用接口?WCF IDisposable設計差異
using(WcfClient client = new WcfClient)
{
client.WebMethod();
}
using(IWcfClient client = new WcfClient)
{
client.WebMethod();
} //throws bc it's not part of the Interfact but is the part of the base class every wcf client implements along the interface?
爲什麼不讓它的界面的一部分,人們可以選擇如何處理自定義的方式清理WCF?
在切線筆記,請注意混合帶有`使用'塊的WCF客戶端可以屏蔽異常。 http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue – 2010-12-22 17:50:59