开发者

Exceptions and WCF services with void return type

If we call a WCF service with a void as a return type.

Will it wait around for the service to finish processing in case there is an exception?

Or will it return ime开发者_运维问答diately and the client will not be notified of any exception on the server?


By default it will wait around. If you use the IsOneWay attribute however, it will not.


The execution of a WCF method will not become asynchronous just because there is a void return type. It will still execute to completion before returning.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜