2

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.

michael
  • 14,844
  • 28
  • 89
  • 177

1 Answers1

4

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

carlosfigueira
  • 85,035
  • 14
  • 131
  • 171
  • 2
    I think it would be be more accurate to say "Yes, your application will wait for the method to finish"...synchronous is a bit misleading because a one-way operation can still block. – Jack Ukleja May 18 '11 at 12:08