开发者

WCF - calling a void service (is it still synchronous)?

开发者 https://www.devze.com 2023-03-06 09:44 出处:网络
Basically, if my service is: public void DoSomethingThatTakesAwhile() { ... }, will the call to that service cause my application to wait for the method to finish?

Basically, if my service is: public void DoSomethingThatTakesAwhile() { ... }, will the call to that service cause my application to wait for the method to finish?

I ask because I don't want my caller to be able to continue until that method finishes in case the method needs to throw a fault exceptio开发者_JAVA技巧n.


Yes, the call is synchronous, unless the operation is marked with [OperationContract(IsOneWay = true)]

0

精彩评论

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