Skip to content

csharp singleton update #7226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 18, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 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 |
|-----------------------------|---------------|
Expand Down