Skip to content

Commit

Permalink
Add stripe_net_target_framework key to extended user agent (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe authored Feb 21, 2020
1 parent d882b8b commit c7774f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,19 @@ private string BuildStripeClientUserAgentString()
}
#endif

var stripeNetTargetFramework =
#if NET45
"net45"
#elif NETSTANDARD1_2
"netstandard1.2"
#elif NETSTANDARD2_0
"netstandard2.0"
#else
"unknown"
#endif
;
values.Add("stripe_net_target_framework", stripeNetTargetFramework);

if (this.appInfo != null)
{
values.Add("application", this.appInfo);
Expand Down

0 comments on commit c7774f7

Please sign in to comment.