Skip to content

Commit 9d039e6

Browse files
Add example for host config parameter (#5020)
1 parent 0a12b80 commit 9d039e6

File tree

1 file changed

+5
-0
lines changed
  • src/connections/sources/catalog/libraries/server/net

1 file changed

+5
-0
lines changed

src/connections/sources/catalog/libraries/server/net/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ If you hate defaults, than you'll love how configurable the Analytics.NET is. Ch
458458
Analytics.Initialize("YOUR_WRITE_KEY", new Config()
459459
.SetAsync(true)
460460
.SetTimeout(TimeSpan.FromSeconds(10))
461+
.SetHost("https://events.eu1.segmentapis.com")
461462
.SetMaxQueueSize(10000));));
462463
```
463464

@@ -470,6 +471,10 @@ Analytics.Initialize("YOUR_WRITE_KEY", new Config()
470471
<td>`timeout` _TimeSpan_</td>
471472
<td>The amount of time to wait before calling the HTTP request a timeout.</td>
472473
</tr>
474+
<tr>
475+
<td>`host` _string_</td>
476+
<td>The API host server address - can be set with the EU endpoint "https://events.eu1.segmentapis.com" instead of default server "https://api.segment.io"</td>
477+
</tr>
473478
<tr>
474479
<td>`maxQueueSize` _int_</td>
475480
<td>The maximum number of messages to allow into the queue before no new message are accepted.</td>

0 commit comments

Comments
 (0)