Esempio n. 1
0
 /// <summary>
 /// Callbacks the method.
 /// </summary>
 /// <param name="asyncResult">The async result.</param>
 private void CallbackMethod(IAsyncResult asyncResult)
 {
     WellBookBLL objBookBLL = null;
     try
     {
         string strResults = string.Empty;
         // Create an instance of the WebService
         objPDFService = (PDFServiceSPProxy)asyncResult.AsyncState;
         strResults = objPDFService.EndGeneratePDFDocument(asyncResult);
         objBookBLL = new WellBookBLL();
         //strDocumentURL = objBookBLL.GetPrintDocumentURL(strResults, strParentSiteURL, strAddress, contextForEmails, "DWB Chapter Print Details");
         objBookBLL.SendEmailToUserOnPrint(strResults, strParentSiteURL, strAddress, contextForEmails);
     }
     catch (SoapException)
     {
         throw;
     }
 }