Skip to content

Commit 971e26a

Browse files
committed
fixing two step 3 markers
1 parent 9294770 commit 971e26a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

launcher-csharp/eSignature/Examples/CreateEnvelopeWithMultipleDocumentTypes.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public static class CreateEnvelopeWithMultipleDocumentTypes
2828
public static (bool statusOk, string envelopeId, string errorCode, string errorMessage, WebException webEx) CreateAndSendEnvelope(
2929
string signerEmail, string signerName, string ccEmail, string ccName, string docDocx, string docPdf, string accessToken, string basePath, string accountId)
3030
{
31-
// Step 1. Make the envelope JSON request body
31+
// Make the envelope JSON request body
3232
//ds-snippet-start:eSign10Step3
3333
dynamic envelope = MakeEnvelope(signerEmail, signerName, ccEmail, ccName);
3434

35-
// Step 2. Gather documents and their headeres
35+
// Gather documents and their headeres
3636
// Read files from a local directory
3737
// The reads could raise an exception if the file is not available!
3838
dynamic doc1 = envelope["documents"][0];
@@ -64,11 +64,10 @@ public static (bool statusOk, string envelopeId, string errorCode, string errorM
6464
},
6565
};
6666

67-
// Step 3. Create the multipart body
67+
// Create the multipart body
6868
byte[] crlf = Encoding.ASCII.GetBytes("\r\n");
6969
byte[] boundary = Encoding.ASCII.GetBytes("multipartboundary_multipartboundary");
7070
byte[] hyphens = Encoding.ASCII.GetBytes("--");
71-
7271
//ds-snippet-end:eSign10Step3
7372
//ds-snippet-start:eSign10Step2
7473
string uri = basePath
@@ -80,7 +79,6 @@ public static (bool statusOk, string envelopeId, string errorCode, string errorM
8079
request.ContentType = "multipart/form-data; boundary=" + Encoding.ASCII.GetString(boundary);
8180
request.Headers.Add("Authorization", "Bearer " + accessToken);
8281
//ds-snippet-end:eSign10Step2
83-
//ds-snippet-start:eSign10Step3
8482

8583
using (var buffer = new BinaryWriter(request.GetRequestStream(), Encoding.ASCII))
8684
{
@@ -120,7 +118,7 @@ public static (bool statusOk, string envelopeId, string errorCode, string errorM
120118
buffer.Write(crlf);
121119
buffer.Flush();
122120
}
123-
121+
//ds-snippet-start:eSign10Step4
124122
WebResponse response = null;
125123
WebException webEx = null;
126124
try
@@ -301,7 +299,7 @@ private static Dictionary<string, dynamic> MakeEnvelope(string signerEmail, stri
301299
};
302300

303301
return envelopeDefinition;
304-
//ds-snippet-end:eSign10Step3
302+
//ds-snippet-end:eSign10Step4
305303
}
306304
}
307305
}

0 commit comments

Comments
 (0)