简体   繁体   English

WCF异常处理代理

[英]WCF Exception Handling proxy

I am using the ErrorHandlingProxy from here and had a coupla questions. 我从这里使用ErrorHandlingProxy,并遇到了一些问题。 I noticed that the ExceptionHandlingProxyBase executes all calls in the main thread. 我注意到ExceptionHandlingProxyBase执行主线程中的所有调用。 What do I need to do to initialize and run in the background? 我需要怎么做才能在后台初始化和运行? I am using it like in the examples in form load 我像表单加载示例中一样使用它

private MyServiceProxy _proxy = null;

private void Form1_Load(object sender, EventArgs e)
{
    _proxy = new MyServiceProxy("MyBinding");
}

Also if possible,I would to generate it without adding a service reference, does anyone know what switches I can use and call svcutil manually? 另外,如果可能,我将在不添加服务引用的情况下生成它,有人知道我可以使用哪些开关并手动调用svcutil吗?

Regards 问候

_Eric _Eric

To get the switches for svcutil just type: 要获取svcutil的开关,只需键入:

svcutil /?

However, we have found that it is better to build the proxy classes from scratch, see: 但是,我们发现最好从头开始构建代理类,请参见:

http://www.dnrtv.com/default.aspx?showNum=122 http://www.dnrtv.com/default.aspx?showNum=122

Note this only works if you have control of both the client and the server. 请注意,这仅在您同时控制客户端和服务器时才有效。

It appears to be unable to do @ this time. 这次似乎无法执行@。 link text 连结文字

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM