//------------------------------------------------------------ // 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; /// /// Defines the ServiceContract Asynchronous interface for a Trust 1.3 protocol. /// [ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrust13Async, Namespace = WSTrustServiceContractConstants.Namespace )] public interface IWSTrust13AsyncContract { /// /// Definiton of Async RST/Cancel method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13CancelAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.Cancel, ReplyAction = WSTrust13Constants.Actions.CancelFinalResponse )] IAsyncResult BeginTrust13Cancel( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RST/Cancel method. /// /// The IAsyncResult result instance returned by the BeginCancel call. /// Message object that contains the RSTR. Message EndTrust13Cancel( IAsyncResult ar ); /// /// Definiton of Async RST/Issue method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13IssueAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.Issue, ReplyAction = WSTrust13Constants.Actions.IssueFinalResponse )] IAsyncResult BeginTrust13Issue( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RST/Issue method. /// /// The IAsyncResult result instance returned by the BeginIssue call. /// Message object that contains the RSTR. Message EndTrust13Issue( IAsyncResult ar ); /// /// Definiton of Async RST/Renew method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13RenewAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.Renew, ReplyAction = WSTrust13Constants.Actions.RenewFinalResponse )] IAsyncResult BeginTrust13Renew( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RST/Renew method. /// /// The IAsyncResult result instance returned by the BeginRenew call. /// Message object that contains the RSTR. Message EndTrust13Renew( IAsyncResult ar ); /// /// Definiton of Async RST/Validate method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13ValidateAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.Validate, ReplyAction = WSTrust13Constants.Actions.ValidateFinalResponse )] IAsyncResult BeginTrust13Validate( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RST/Validate method. /// /// The IAsyncResult result instance returned by the BeginValidate call. /// Message object that contains the RSTR. Message EndTrust13Validate( IAsyncResult ar ); /// /// Definiton of Async RSTR/Cancel method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. // // NOTE: // ReplyAction = "*" has a side effect of not generating this operation, port, or messages in the // WCF-generated WSDL. This is desired. // [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13CancelResponseAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.CancelResponse, ReplyAction = "*" )] IAsyncResult BeginTrust13CancelResponse( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RSTR/Cancel method. /// /// The IAsyncResult result instance returned by the BeginCancel call. /// Message object that contains the RSTR. Message EndTrust13CancelResponse( IAsyncResult ar ); /// /// Definiton of Async RSTR/Issue method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. // // NOTE: // ReplyAction = "*" has a side effect of not generating this operation, port, or messages in the // WCF-generated WSDL. This is desired. // [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13IssueResponseAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.IssueResponse, ReplyAction = "*" )] IAsyncResult BeginTrust13IssueResponse( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RSTR/Issue method. /// /// The IAsyncResult result instance returned by the BeginIssue call. /// Message object that contains the RSTR. Message EndTrust13IssueResponse( IAsyncResult ar ); /// /// Definiton of Async RSTR/Renew method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. // // NOTE: // ReplyAction = "*" has a side effect of not generating this operation, port, or messages in the // WCF-generated WSDL. This is desired. // [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13RenewResponseAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.RenewResponse, ReplyAction = "*" )] IAsyncResult BeginTrust13RenewResponse( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RSTR/Renew method. /// /// The IAsyncResult result instance returned by the BeginRenew call. /// Message object that contains the RSTR. Message EndTrust13RenewResponse( IAsyncResult ar ); /// /// Definiton of Async RSTR/Validate method for WS-Trust 1.3 /// /// Request Message containing the RST. /// AsyncCallback context. /// Asyn state. /// IAsyncResult result instance. // // NOTE: // ReplyAction = "*" has a side effect of not generating this operation, port, or messages in the // WCF-generated WSDL. This is desired. // [OperationContract( Name = WSTrustServiceContractConstants.Operations.Trust13ValidateResponseAsync, AsyncPattern = true, Action = WSTrust13Constants.Actions.ValidateResponse, ReplyAction = "*" )] IAsyncResult BeginTrust13ValidateResponse( Message request, AsyncCallback callback, object state ); /// /// Completes the Async RSTR/Validate method. /// /// The IAsyncResult result instance returned by the BeginValidate call. /// Message object that contains the RSTR. Message EndTrust13ValidateResponse( IAsyncResult ar ); } }