This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adds support for application tags. (#192)
**Requirements** - [x] I have added test coverage for new or changed functionality - [x] I have followed the repository's [pull request submission guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests) - [ ] I have validated my changes against all supported platform versions **Related issues** https://app.shortcut.com/launchdarkly/story/183476/net-client-sdk-add-support-for-tags **Describe the solution you've provided** Adds ApplicationInfo support to the ConfigurationBuilder for providing ApplicationInfo to the SDK. Updated LDClientContext to hold an environment reporter and also updated HttpProperties creation to utilize the application info in forming the request headers.
- Loading branch information
Showing
16 changed files
with
318 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ Thumbs.db | |
# resharper | ||
*_Resharper.* | ||
*.Resharper | ||
.idea | ||
|
||
# dotCover | ||
*.dotCover | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using LaunchDarkly.Sdk.Internal; | ||
|
||
namespace LaunchDarkly.Sdk.Client.Internal | ||
{ | ||
|
||
/// <summary> | ||
/// Defines common information about the SDK itself for usage | ||
/// in various components. | ||
/// </summary> | ||
internal static class SdkPackage | ||
{ | ||
/// <summary> | ||
/// The canonical name of this SDK, following the convention of (technology)-(server|client)-sdk. | ||
/// </summary> | ||
internal const string Name = "dotnet-client-sdk"; | ||
|
||
/// <summary> | ||
/// The prefix for the User-Agent header, omitting the version string. This may be different than the Name | ||
/// due to historical reasons. | ||
/// </summary> | ||
private const string UserAgentPrefix = "XamarinClient"; | ||
|
||
/// <summary> | ||
/// Version of the SDK. | ||
/// </summary> | ||
internal static string Version => AssemblyVersions.GetAssemblyVersionStringForType(typeof(LdClient)); | ||
|
||
/// <summary> | ||
/// User-Agent suitable for usage in HTTP requests. | ||
/// </summary> | ||
internal static string UserAgent => $"{UserAgentPrefix}/{Version}"; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.