/// <summary> /// Submits an approval response message for the pending approval using /// the specified endpoint address and the default approval endpoint /// configuration name (ServiceMultipleTokenBinding_ResourceFactory). /// Use this overload e.g. if you need to specify explicitly a service /// principal name. /// </summary> /// <param name="approval">The approval object for which to submit an approval response.</param> /// <param name="isApproved">True when to approve the approval. False to reject it.</param> /// <param name="approvalConfiguration">The approval endpoint.</param> public void Approve( RmApproval approval, bool isApproved, EndpointAddress address) { Approve(approval, isApproved, address, DefaultApprovalConfiguration); }
/// <summary> /// Submits an approval response message for the pending approval using /// the specified endpoint address and the specified approval endpoint /// configuration name. /// Use this overload e.g. if you need to specify explicitly a service /// principal name. /// </summary> /// <param name="approval">The approval object for which to submit an approval response.</param> /// <param name="isApproved">True when to approve the approval. False to reject it.</param> /// <param name="approvalConfiguration">The approval endpoint.</param> public void Approve( RmApproval approval, bool isApproved, EndpointAddress address, string approvalConfiguration) { // Create a transfer client specifying the configuration name and // the approval endpoint WsTransferFactoryClient approvalClient = new WsTransferFactoryClient( approvalConfiguration, address); // set the credentials in the new client approvalClient.ClientCredentials.Windows.ClientCredential = this.ClientCredential; // approve the request approvalClient.Approve(approval, isApproved); }
/// <summary> /// Submits an approval response message for the pending approval using /// the default approval endpoint configuration name /// (ServiceMultipleTokenBinding_ResourceFactory). /// </summary> /// <param name="approval">The approval object for which to submit an approval response.</param> /// <param name="isApproved">True when to approve the approval. False to reject it.</param> /// <returns>Returns true if the approval response was accepted.</returns> public void Approve( RmApproval approval, bool isApproved) { Approve(approval, isApproved, DefaultApprovalConfiguration); }