Skip to content

Commit ea56640

Browse files
authored
Merge pull request #4 from ElasticEmail/update-to-filestream
Update to FileStream
2 parents 0ebd86d + 283805d commit ea56640

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/ContactsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ namespace Example
723723
var listName = "listName_example"; // string | Name of an existing list to add these contacts to (optional)
724724
var encodingName = "encodingName_example"; // string | In what encoding the file is uploaded (optional)
725725
var fileUrl = "fileUrl_example"; // string | Optional url of csv to import (optional)
726-
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
726+
var file = new System.IO.FileStream("/path/to/file.txt", FileMode.Open, FileAccess.Read); // System.IO.Stream | (optional)
727727
728728
try
729729
{

docs/SuppressionsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace Example
147147
// config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
148148
149149
var apiInstance = new SuppressionsApi(config);
150-
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
150+
var file = new System.IO.FileStream("/path/to/file.txt", FileMode.Open, FileAccess.Read); // System.IO.Stream | (optional)
151151
152152
try
153153
{
@@ -623,7 +623,7 @@ namespace Example
623623
// config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
624624
625625
var apiInstance = new SuppressionsApi(config);
626-
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
626+
var file = new System.IO.FileStream("/path/to/file.txt", FileMode.Open, FileAccess.Read); // System.IO.Stream | (optional)
627627
628628
try
629629
{
@@ -1009,7 +1009,7 @@ namespace Example
10091009
// config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
10101010
10111011
var apiInstance = new SuppressionsApi(config);
1012-
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
1012+
var file = new System.IO.FileStream("/path/to/file.txt", FileMode.Open, FileAccess.Read); // System.IO.Stream | (optional)
10131013
10141014
try
10151015
{

docs/VerificationsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ namespace Example
709709
// config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
710710
711711
var apiInstance = new VerificationsApi(config);
712-
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | (optional)
712+
var file = new System.IO.FileStream("/path/to/file.txt", FileMode.Open, FileAccess.Read); // System.IO.Stream | (optional)
713713
714714
try
715715
{

0 commit comments

Comments
 (0)