ErrorHandlerFaultInfo.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel.Dispatcher
  5. {
  6. using System;
  7. using System.ServiceModel.Channels;
  8. using System.ServiceModel;
  9. using System.ServiceModel.Diagnostics;
  10. internal struct ErrorHandlerFaultInfo
  11. {
  12. Message fault; // if this is null, then we aren't interested in sending back a fault
  13. bool isConsideredUnhandled; // if this is true, it means Fault is the 'internal server error' fault
  14. string defaultFaultAction;
  15. public ErrorHandlerFaultInfo(string defaultFaultAction)
  16. {
  17. this.defaultFaultAction = defaultFaultAction;
  18. this.fault = null;
  19. this.isConsideredUnhandled = false;
  20. }
  21. public Message Fault
  22. {
  23. get { return this.fault; }
  24. set { this.fault = value; }
  25. }
  26. public string DefaultFaultAction
  27. {
  28. get { return this.defaultFaultAction; }
  29. set { this.defaultFaultAction = value; }
  30. }
  31. public bool IsConsideredUnhandled
  32. {
  33. get { return this.isConsideredUnhandled; }
  34. set { this.isConsideredUnhandled = value; }
  35. }
  36. }
  37. }