IWSTrustFeb2005AsyncContract.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Security
  5. {
  6. using System;
  7. using System.IdentityModel.Protocols.WSTrust;
  8. using System.ServiceModel;
  9. using System.ServiceModel.Channels;
  10. /// <summary>
  11. /// Defines the ServiceContract Asynchronous interface for a Trust Feb 2005 protocol.
  12. /// </summary>
  13. [ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Async, Namespace = WSTrustServiceContractConstants.Namespace )]
  14. public interface IWSTrustFeb2005AsyncContract
  15. {
  16. /// <summary>
  17. /// Definiton of Async RST/Cancel method for WS-Trust Feb 2005
  18. /// </summary>
  19. /// <param name="request">Request Message containing the RST.</param>
  20. /// <param name="callback">AsyncCallback context.</param>
  21. /// <param name="state">Asyn state.</param>
  22. /// <returns>IAsyncResult result instance.</returns>
  23. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005CancelAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Cancel, ReplyAction = WSTrustFeb2005Constants.Actions.CancelResponse )]
  24. IAsyncResult BeginTrustFeb2005Cancel( Message request, AsyncCallback callback, object state );
  25. /// <summary>
  26. /// Completes the Async RST/Cancel method.
  27. /// </summary>
  28. /// <param name="ar">The IAsyncResult result instance returned by the BeginCancel call.</param>
  29. /// <returns>Message object that contains the RSTR.</returns>
  30. Message EndTrustFeb2005Cancel( IAsyncResult ar );
  31. /// <summary>
  32. /// Definiton of Async RST/Issue method for WS-Trust Feb 2005
  33. /// </summary>
  34. /// <param name="request">Request Message containing the RST.</param>
  35. /// <param name="callback">AsyncCallback context.</param>
  36. /// <param name="state">Asyn state.</param>
  37. /// <returns>IAsyncResult result instance.</returns>
  38. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005IssueAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Issue, ReplyAction = WSTrustFeb2005Constants.Actions.IssueResponse )]
  39. IAsyncResult BeginTrustFeb2005Issue( Message request, AsyncCallback callback, object state );
  40. /// <summary>
  41. /// Completes the Async RST/Issue method.
  42. /// </summary>
  43. /// <param name="ar">The IAsyncResult result instance returned by the BeginIssue call.</param>
  44. /// <returns>Message object that contains the RSTR.</returns>
  45. Message EndTrustFeb2005Issue( IAsyncResult ar );
  46. /// <summary>
  47. /// Definiton of Async RST/Renew method for WS-Trust Feb 2005
  48. /// </summary>
  49. /// <param name="request">Request Message containing the RST.</param>
  50. /// <param name="callback">AsyncCallback context.</param>
  51. /// <param name="state">Asyn state.</param>
  52. /// <returns>IAsyncResult result instance.</returns>
  53. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005RenewAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Renew, ReplyAction = WSTrustFeb2005Constants.Actions.RenewResponse )]
  54. IAsyncResult BeginTrustFeb2005Renew( Message request, AsyncCallback callback, object state );
  55. /// <summary>
  56. /// Completes the Async RST/Renew method.
  57. /// </summary>
  58. /// <param name="ar">The IAsyncResult result instance returned by the BeginRenew call.</param>
  59. /// <returns>Message object that contains the RSTR.</returns>
  60. Message EndTrustFeb2005Renew( IAsyncResult ar );
  61. /// <summary>
  62. /// Definiton of Async RST/Validate method for WS-Trust Feb 2005
  63. /// </summary>
  64. /// <param name="request">Request Message containing the RST.</param>
  65. /// <param name="callback">AsyncCallback context.</param>
  66. /// <param name="state">Asyn state.</param>
  67. /// <returns>IAsyncResult result instance.</returns>
  68. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005ValidateAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Validate, ReplyAction = WSTrustFeb2005Constants.Actions.ValidateResponse )]
  69. IAsyncResult BeginTrustFeb2005Validate( Message request, AsyncCallback callback, object state );
  70. /// <summary>
  71. /// Completes the Async RST/Validate method.
  72. /// </summary>
  73. /// <param name="ar">The IAsyncResult result instance returned by the BeginValidate call.</param>
  74. /// <returns>Message object that contains the RSTR.</returns>
  75. Message EndTrustFeb2005Validate( IAsyncResult ar );
  76. /// <summary>
  77. /// Definiton of Async RSTR/Cancel method for WS-Trust Feb 2005
  78. /// </summary>
  79. /// <param name="request">Request Message containing the RST.</param>
  80. /// <param name="callback">AsyncCallback context.</param>
  81. /// <param name="state">Asyn state.</param>
  82. /// <returns>IAsyncResult result instance.</returns>
  83. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005CancelResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.CancelResponse, ReplyAction = WSTrustFeb2005Constants.Actions.CancelResponse )]
  84. IAsyncResult BeginTrustFeb2005CancelResponse( Message request, AsyncCallback callback, object state );
  85. /// <summary>
  86. /// Completes the Async RSTR/Cancel method.
  87. /// </summary>
  88. /// <param name="ar">The IAsyncResult result instance returned by the BeginCancelResponse call.</param>
  89. /// <returns>Message object that contains the RSTR.</returns>
  90. Message EndTrustFeb2005CancelResponse( IAsyncResult ar );
  91. /// <summary>
  92. /// Definiton of Async RSTR/Issue method for WS-Trust Feb 2005
  93. /// </summary>
  94. /// <param name="request">Request Message containing the RST.</param>
  95. /// <param name="callback">AsyncCallback context.</param>
  96. /// <param name="state">Asyn state.</param>
  97. /// <returns>IAsyncResult result instance.</returns>
  98. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005IssueResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.IssueResponse, ReplyAction = WSTrustFeb2005Constants.Actions.IssueResponse )]
  99. IAsyncResult BeginTrustFeb2005IssueResponse( Message request, AsyncCallback callback, object state );
  100. /// <summary>
  101. /// Completes the Async RSTR/Issue method.
  102. /// </summary>
  103. /// <param name="ar">The IAsyncResult result instance returned by the BeginIssueResponse call.</param>
  104. /// <returns>Message object that contains the RSTR.</returns>
  105. Message EndTrustFeb2005IssueResponse( IAsyncResult ar );
  106. /// <summary>
  107. /// Definiton of Async RSTR/Renew method for WS-Trust Feb 2005
  108. /// </summary>
  109. /// <param name="request">Request Message containing the RST.</param>
  110. /// <param name="callback">AsyncCallback context.</param>
  111. /// <param name="state">Asyn state.</param>
  112. /// <returns>IAsyncResult result instance.</returns>
  113. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005RenewResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.RenewResponse, ReplyAction = WSTrustFeb2005Constants.Actions.RenewResponse )]
  114. IAsyncResult BeginTrustFeb2005RenewResponse( Message request, AsyncCallback callback, object state );
  115. /// <summary>
  116. /// Completes the Async RSTR/Renew method.
  117. /// </summary>
  118. /// <param name="ar">The IAsyncResult result instance returned by the BeginRenewResponse call.</param>
  119. /// <returns>Message object that contains the RSTR.</returns>
  120. Message EndTrustFeb2005RenewResponse( IAsyncResult ar );
  121. /// <summary>
  122. /// Definiton of Async RSTR/Validate method for WS-Trust Feb 2005
  123. /// </summary>
  124. /// <param name="request">Request Message containing the RST.</param>
  125. /// <param name="callback">AsyncCallback context.</param>
  126. /// <param name="state">Asyn state.</param>
  127. /// <returns>IAsyncResult result instance.</returns>
  128. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005ValidateResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.ValidateResponse, ReplyAction = WSTrustFeb2005Constants.Actions.ValidateResponse )]
  129. IAsyncResult BeginTrustFeb2005ValidateResponse( Message request, AsyncCallback callback, object state );
  130. /// <summary>
  131. /// Completes the Async RSTR/Validate method.
  132. /// </summary>
  133. /// <param name="ar">The IAsyncResult result instance returned by the BeginValidateResponse call.</param>
  134. /// <returns>Message object that contains the RSTR.</returns>
  135. Message EndTrustFeb2005ValidateResponse( IAsyncResult ar );
  136. }
  137. }