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.
精彩评论