Reputation: 692
I have a WCF service that is using SessionMode.Required for state. I have a method that will terminal the channel if called (IsTerminating=true). However I only want to terminate if certain conditions are met. If I throw a fault will the channel still close? If so, what is the best way to handle this scenario.
Upvotes: 1
Views: 372
Reputation: 7264
Yes, the channel is closed after any reply is sent, regardless of whether it was a fault or not.
It seems you only have two options to deal with this:
Upvotes: 2