开发者

Exceptions and WCF services with void return type

开发者 https://www.devze.com 2023-02-05 14:07 出处:网络
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?

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

精彩评论

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