From 10d5d5cf4d672440106d007384c3ea2241e69493 Mon Sep 17 00:00:00 2001 From: Niall Date: Thu, 14 Nov 2024 12:29:58 +0000 Subject: [PATCH 1/3] csharp singleton update --- .../sources/catalog/libraries/server/csharp/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connections/sources/catalog/libraries/server/csharp/index.md b/src/connections/sources/catalog/libraries/server/csharp/index.md index 9281e8cab4..5da03e0e90 100644 --- a/src/connections/sources/catalog/libraries/server/csharp/index.md +++ b/src/connections/sources/catalog/libraries/server/csharp/index.md @@ -55,6 +55,8 @@ To get started with the Analytics-CSharp library: flushInterval: 30); var analytics = new Analytics(configuration); ``` +> info "" +>When using the library with a scoped lifetime, be aware of potential consequences. Our SDK is designed to be stateless, meaning objects are disposed of when the analytics instance is disposed. We avoid using singletons for configurations or HTTP clients to prevent memory management issues. Instead, if customers wish to use singletons, we recommend customers create their own HTTP client provider with a singleton HTTP client for better control and management. | Option Name | Description | |-----------------------------|---------------| From e6bc2cd97f2a2b0e5eb8507723b534f5dc76a5ad Mon Sep 17 00:00:00 2001 From: Niall Brennan Date: Thu, 14 Nov 2024 15:26:20 +0000 Subject: [PATCH 2/3] Update src/connections/sources/catalog/libraries/server/csharp/index.md Co-authored-by: Wenxi Zeng --- .../sources/catalog/libraries/server/csharp/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/csharp/index.md b/src/connections/sources/catalog/libraries/server/csharp/index.md index 5da03e0e90..b840e16b93 100644 --- a/src/connections/sources/catalog/libraries/server/csharp/index.md +++ b/src/connections/sources/catalog/libraries/server/csharp/index.md @@ -56,7 +56,7 @@ To get started with the Analytics-CSharp library: var analytics = new Analytics(configuration); ``` > info "" ->When using the library with a scoped lifetime, be aware of potential consequences. Our SDK is designed to be stateless, meaning objects are disposed of when the analytics instance is disposed. We avoid using singletons for configurations or HTTP clients to prevent memory management issues. Instead, if customers wish to use singletons, we recommend customers create their own HTTP client provider with a singleton HTTP client for better control and management. +>When using the library with a scoped lifetime, be aware of potential consequences. Our SDK is designed to be disposable, meaning objects are disposed of when the analytics instance is disposed. We avoid using singletons for configurations or HTTP clients to prevent memory management issues. Instead, if customers wish to use singletons, we recommend customers create their own HTTP client provider with a singleton HTTP client for better control and management. | Option Name | Description | |-----------------------------|---------------| From e35e6b1307e0fbcf63e880818ed20fade6947a6a Mon Sep 17 00:00:00 2001 From: forstisabella <92472883+forstisabella@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:50:05 -0500 Subject: [PATCH 3/3] Update src/connections/sources/catalog/libraries/server/csharp/index.md --- .../sources/catalog/libraries/server/csharp/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/csharp/index.md b/src/connections/sources/catalog/libraries/server/csharp/index.md index b840e16b93..493245910a 100644 --- a/src/connections/sources/catalog/libraries/server/csharp/index.md +++ b/src/connections/sources/catalog/libraries/server/csharp/index.md @@ -55,8 +55,9 @@ To get started with the Analytics-CSharp library: flushInterval: 30); var analytics = new Analytics(configuration); ``` + > info "" ->When using the library with a scoped lifetime, be aware of potential consequences. Our SDK is designed to be disposable, meaning objects are disposed of when the analytics instance is disposed. We avoid using singletons for configurations or HTTP clients to prevent memory management issues. Instead, if customers wish to use singletons, we recommend customers create their own HTTP client provider with a singleton HTTP client for better control and management. +> 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. | Option Name | Description | |-----------------------------|---------------|