Search code examples
wcfvoidsynchronousfaultexception

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 exception.


Solution

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