Skip to content

Commit 624d311

Browse files
csharp singleton update (#7226)
* csharp singleton update * Update src/connections/sources/catalog/libraries/server/csharp/index.md Co-authored-by: Wenxi Zeng <[email protected]> --------- Co-authored-by: Wenxi Zeng <[email protected]>
1 parent 6b7a3cc commit 624d311

File tree

1 file changed

+3
-0
lines changed
  • src/connections/sources/catalog/libraries/server/csharp

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ To get started with the Analytics-CSharp library:
5656
var analytics = new Analytics(configuration);
5757
```
5858

59+
> info ""
60+
> Segment's SDK is designed to be disposable, meaning Segment disposes of objects when the analytics instance is disposed. Segment avoids using singletons for configurations or HTTP clients to prevent memory management issues. If you want to use singletons, create your own HTTP client provider with a singleton HTTP client for better control and management.
61+
5962
| Option Name | Description |
6063
|-----------------------------|---------------|
6164
| `writeKey` *required* | This is your Segment write key. |

0 commit comments

Comments
 (0)