Performance improvement
Thursday, April 13, 2017 at 09:44amHi There,
In our application, I am using the code below to get the documents eSigned Automatically in the sandbox account. There are two documents that needs to be signed and each document is only 70-100kb in size, but the signing process takes about 7~8 seconds to complete the signing. This is something we are doing on post action of a page and this makes the next page load a lot slower. Is there anything that I can change in my code that can improve the performance? Or will the performance be automatically faster in production account?
Stream file1 = new MemoryStream(Document1); EslClient eslClient = new EslClient(API_KEY, API_URL); PackageBuilder packageToBuild = PackageBuilder.NewPackageNamed("Test package"); Signer signer1 = SignerBuilder.NewSignerWithEmail(Signer1Details.SignerDetails.ssSignerEmail) .WithCustomId(Signer1Details.SignerDetails.ssSignerId) .WithFirstName(Signer1Details.SignerDetails.ssFirstName) .WithLastName(Signer1Details.SignerDetails.ssLastName) .Build(); DocumentBuilder document = DocumentBuilder.NewDocumentNamed(Document1Name) .FromStream(file1, DocumentType.PDF) .WithId(Doc1Id) .WithSignature(SignatureBuilder.SignatureFor(Signer1Details.SignerDetails.ssSignerEmail) .OnPage(PageToSign) .AtPosition(SignatureXPosition, SignatureYPosition) .WithField(FieldBuilder.SignatureDate() .OnPage(0) .AtPosition(SignatureXPosition, (SignatureYPosition + 50)))); DocumentPackage packageToSend; PackageId packageId; if (ssTotalDocuments == 2) { Stream file2 = new MemoryStream(ssDocument2); Signer signer2 = SignerBuilder.NewSignerWithEmail(Signer2Details.SignerDetails.ssSignerEmail) .WithCustomId(Signer2Details.SignerDetails.ssSignerId) .WithFirstName(Signer2Details.SignerDetails.ssFirstName) .WithLastName(Signer2Details.SignerDetails.ssLastName) .Build(); DocumentBuilder document2 = DocumentBuilder.NewDocumentNamed(Document2Name) .FromStream(file2, DocumentType.PDF) .WithId(Doc2Id) .WithSignature(SignatureBuilder.SignatureFor(ssSigner2Details.ssSTSignerDetails.ssSignerEmail) .OnPage(PageToSign) .AtPosition(SignatureXPosition, SignatureYPosition) .WithField(FieldBuilder.SignatureDate() .OnPage(0) .AtPosition(SignatureXPosition, (SignatureYPosition + 50)))); packageToSend = packageToBuild.WithSigner(signer1).WithSigner(signer2).WithDocument(document).WithDocument(document2).Build(); packageId = eslClient.CreateAndSendPackage(packageToSend); eslClient.SignDocuments(packageId, signer1.Id); eslClient.SignDocuments(packageId, signer2.Id); } else { packageToSend = packageToBuild.WithSigner(signer1).WithDocument(document).Build(); packageId = eslClient.CreateAndSendPackage(packageToSend); eslClient.SignDocuments(packageId, signer1.Id); } PackageId = packageId.ToString();
Reply to: Performance improvement
Thursday, April 13, 2017 at 10:08amReply to: Performance improvement
Thursday, April 13, 2017 at 10:38amReply to: Performance improvement
Thursday, April 13, 2017 at 10:46amReply to: Performance improvement
Thursday, April 13, 2017 at 10:48amReply to: Performance improvement
Thursday, August 17, 2017 at 04:25amReply to: Performance improvement
Thursday, August 17, 2017 at 04:58amsignDocuments()
once FedFramp is upgraded to version 11.Reply to: Performance improvement
Wednesday, August 23, 2017 at 03:19am