WCF - calling a void service (is it still synchronous)?
-
14-11-2019 - |
Question
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 exception.
Solution
Yes, the call is synchronous, unless the operation is marked with [OperationContract(IsOneWay = true)]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow