protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state) { LoadAuthentication(context); if (EnvelopeID.Get(context) != null) { mEnvelopeID = EnvelopeID.Get(context); } else { throw new System.ArgumentException("Envelope ID is required!"); } if (DocumentID.Get(context) != null) { mDocumentID = DocumentID.Get(context); } else { throw new System.ArgumentException("Document ID is required!"); } if (OutFile.Get(context) != null) { mOutFile = OutFile.Get(context); } else { throw new System.ArgumentException("Output filepath is required!"); } GetDocumentDelegate = new Action(_DownloadDocument); return(GetDocumentDelegate.BeginInvoke(callback, state)); }
protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state) { LoadAuthentication(context); Query["include_extended"] = "true"; Query["include_tabs"] = "true"; envelopeID = EnvelopeID.Get(context); GetRecipientsDelegate = new Action(_GetRecipients); return(GetRecipientsDelegate.BeginInvoke(callback, state)); }
protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state) { LoadAuthentication(context); if (EnvelopeID.Get(context) != null) { mEnvelopeId = EnvelopeID.Get(context); } GetRecipientsDelegate = new Action(_ListDocuments); return(GetRecipientsDelegate.BeginInvoke(callback, state)); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = 17; hash = hash * 23 + EnvelopeID.GetHashCode(); hash = hash * 23 + (PolicyNumber != null ? PolicyNumber.GetHashCode() : -2); hash = hash * 23 + (TZ != null ? TZ.GetHashCode() : -1); return(hash); } }
protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state) { LoadAuthentication(context); if (EnvelopeID.Get(context) != null) { mEnvelopeId = EnvelopeID.Get(context); } else { throw new System.ArgumentException("Envelope ID is required!"); } GetDocumentsDelegate = new Action(_ListDocuments); return(GetDocumentsDelegate.BeginInvoke(callback, state)); }