| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- //------------------------------------------------------------
- // Copyright (c) Microsoft Corporation. All rights reserved.
- //------------------------------------------------------------
- namespace System.ServiceModel.Security
- {
- using System;
- using System.IdentityModel.Protocols.WSTrust;
- using System.ServiceModel;
- using System.ServiceModel.Channels;
- /// <summary>
- /// Defines the ServiceContract Asynchronous interface for a Trust Feb 2005 protocol.
- /// </summary>
- [ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Async, Namespace = WSTrustServiceContractConstants.Namespace )]
- public interface IWSTrustFeb2005AsyncContract
- {
- /// <summary>
- /// Definiton of Async RST/Cancel method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005CancelAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Cancel, ReplyAction = WSTrustFeb2005Constants.Actions.CancelResponse )]
- IAsyncResult BeginTrustFeb2005Cancel( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RST/Cancel method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginCancel call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005Cancel( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RST/Issue method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005IssueAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Issue, ReplyAction = WSTrustFeb2005Constants.Actions.IssueResponse )]
- IAsyncResult BeginTrustFeb2005Issue( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RST/Issue method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginIssue call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005Issue( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RST/Renew method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005RenewAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Renew, ReplyAction = WSTrustFeb2005Constants.Actions.RenewResponse )]
- IAsyncResult BeginTrustFeb2005Renew( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RST/Renew method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginRenew call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005Renew( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RST/Validate method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005ValidateAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.Validate, ReplyAction = WSTrustFeb2005Constants.Actions.ValidateResponse )]
- IAsyncResult BeginTrustFeb2005Validate( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RST/Validate method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginValidate call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005Validate( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RSTR/Cancel method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005CancelResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.CancelResponse, ReplyAction = WSTrustFeb2005Constants.Actions.CancelResponse )]
- IAsyncResult BeginTrustFeb2005CancelResponse( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RSTR/Cancel method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginCancelResponse call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005CancelResponse( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RSTR/Issue method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005IssueResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.IssueResponse, ReplyAction = WSTrustFeb2005Constants.Actions.IssueResponse )]
- IAsyncResult BeginTrustFeb2005IssueResponse( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RSTR/Issue method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginIssueResponse call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005IssueResponse( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RSTR/Renew method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005RenewResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.RenewResponse, ReplyAction = WSTrustFeb2005Constants.Actions.RenewResponse )]
- IAsyncResult BeginTrustFeb2005RenewResponse( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RSTR/Renew method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginRenewResponse call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005RenewResponse( IAsyncResult ar );
- /// <summary>
- /// Definiton of Async RSTR/Validate method for WS-Trust Feb 2005
- /// </summary>
- /// <param name="request">Request Message containing the RST.</param>
- /// <param name="callback">AsyncCallback context.</param>
- /// <param name="state">Asyn state.</param>
- /// <returns>IAsyncResult result instance.</returns>
- [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005ValidateResponseAsync, AsyncPattern = true, Action = WSTrustFeb2005Constants.Actions.ValidateResponse, ReplyAction = WSTrustFeb2005Constants.Actions.ValidateResponse )]
- IAsyncResult BeginTrustFeb2005ValidateResponse( Message request, AsyncCallback callback, object state );
- /// <summary>
- /// Completes the Async RSTR/Validate method.
- /// </summary>
- /// <param name="ar">The IAsyncResult result instance returned by the BeginValidateResponse call.</param>
- /// <returns>Message object that contains the RSTR.</returns>
- Message EndTrustFeb2005ValidateResponse( IAsyncResult ar );
- }
- }
|