Skip to content

Commit 9d7e7f5

Browse files
authored
Update SuppressionsApi.md
Changed MemoryStream to FileStream
1 parent 3a9c300 commit 9d7e7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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
{

0 commit comments

Comments
 (0)