/// <summary>
 /// This is a method that you can use to get a set of of standard
 /// URLs for captive recipient.
 /// </summary>
 /// <param name="urlBase">A base URL of where the post is going to be returned to</param>
 /// <param name="userName">user name will correspond to the user name that was provided to the token request</param>
 /// <returns></returns>
 public static DocuSignWeb.RequestRecipientTokenClientURLs StandardUrls(System.Uri urlBase, string userName)
 {
     DocuSignWeb.RequestRecipientTokenClientURLs urls = new DocuSignWeb.RequestRecipientTokenClientURLs();
     urls.OnSigningComplete = urlBase + "?event=SignComplete&uname=" + userName;
     urls.OnViewingComplete = urlBase + "?event=ViewComplete&uname=" + userName;
     urls.OnCancel = urlBase + "?event=Cancel&uname=" + userName;
     urls.OnDecline = urlBase + "?event=Decline&uname=" + userName;
     urls.OnSessionTimeout = urlBase + "?event=Timeout&uname=" + userName;
     urls.OnTTLExpired = urlBase + "?event=TTLExpired&uname=" + userName;
     urls.OnIdCheckFailed = urlBase + "?event=IDCheck&uname=" + userName;
     urls.OnAccessCodeFailed = urlBase + "?event=AccessCode&uname=" + userName;
     urls.OnException = urlBase + "?event=Exception&uname=" + userName;
     return urls;
 }
 /// <remarks/>
 public void RequestRecipientTokenAsync(string EnvelopeID, string ClientUserID, string Username, string Email, RequestRecipientTokenAuthenticationAssertion AuthenticationAssertion, RequestRecipientTokenClientURLs ClientURLs, object userState)
 {
     if ((this.RequestRecipientTokenOperationCompleted == null)) {
         this.RequestRecipientTokenOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRequestRecipientTokenOperationCompleted);
     }
     this.InvokeAsync("RequestRecipientToken", new object[] {
                 EnvelopeID,
                 ClientUserID,
                 Username,
                 Email,
                 AuthenticationAssertion,
                 ClientURLs}, this.RequestRecipientTokenOperationCompleted, userState);
 }
 public string RequestRecipientToken(string EnvelopeID, string ClientUserID, string Username, string Email, RequestRecipientTokenAuthenticationAssertion AuthenticationAssertion, RequestRecipientTokenClientURLs ClientURLs)
 {
     object[] results = this.Invoke("RequestRecipientToken", new object[] {
                 EnvelopeID,
                 ClientUserID,
                 Username,
                 Email,
                 AuthenticationAssertion,
                 ClientURLs});
     return ((string)(results[0]));
 }
 /// <remarks/>
 public void RequestRecipientTokenAsync(string EnvelopeID, string ClientUserID, string Username, string Email, RequestRecipientTokenAuthenticationAssertion AuthenticationAssertion, RequestRecipientTokenClientURLs ClientURLs)
 {
     this.RequestRecipientTokenAsync(EnvelopeID, ClientUserID, Username, Email, AuthenticationAssertion, ClientURLs, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginRequestRecipientToken(string EnvelopeID, string ClientUserID, string Username, string Email, RequestRecipientTokenAuthenticationAssertion AuthenticationAssertion, RequestRecipientTokenClientURLs ClientURLs, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("RequestRecipientToken", new object[] {
                 EnvelopeID,
                 ClientUserID,
                 Username,
                 Email,
                 AuthenticationAssertion,
                 ClientURLs}, callback, asyncState);
 }