WSTrustRequestProcessingErrorEventArgs.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Security
  5. {
  6. using System;
  7. /// <summary>
  8. /// Event Argument that is created when an Trust Request Fault is raised.
  9. /// </summary>
  10. public class WSTrustRequestProcessingErrorEventArgs : EventArgs
  11. {
  12. Exception _exception;
  13. string _requestType;
  14. /// <summary>
  15. /// Creates an instance of this Event Argument.
  16. /// </summary>
  17. /// <param name="requestType">The Trust Request Type that failed.</param>
  18. /// <param name="exception">The exception happend during this Request.</param>
  19. public WSTrustRequestProcessingErrorEventArgs( string requestType, Exception exception )
  20. {
  21. _exception = exception;
  22. _requestType = requestType;
  23. }
  24. /// <summary>
  25. /// Gets the Exception thrown.
  26. /// </summary>
  27. public Exception Exception
  28. {
  29. get { return _exception; }
  30. }
  31. /// <summary>
  32. /// Gets the Request Type that failed.
  33. /// </summary>
  34. public string RequestType
  35. {
  36. get { return _requestType; }
  37. }
  38. }
  39. }