开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜