【发布时间】:2010-09-26 05:10:45
【问题描述】:
我想从 web.config 或 app.config 中获取 Binding 对象。
所以,这段代码有效:
wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc");
但我想做以下事情:
Binding binding = DoSomething();
wcfTestClient = new TestServiceClient(binding, Url + "/TestService.svc");
当然,我对 DoSomething() 方法很感兴趣。
【问题讨论】:
标签: .net wcf wcf-binding