code_junkie

WCF - Overhead of throwing FaultExceptions within your service

Nov 11th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. throw new FaultException
  2.  
  3. public void AuthenticateUser()
  4. {
  5. throw new FaultException("Your account has not been activated");
  6. }
  7.  
  8. public AutheticateDto AutheticateUser()
  9. {
  10. return new AutheticateDto() {
  11. Success = false,
  12. Message = "Your account has not been activated"};
  13. }
Add Comment
Please, Sign In to add comment