Skip to content

Commit 129b3ab

Browse files
authored
Merge pull request #171 from dingmeng-xue/telemetry
Correct ProductInfoHeaderValue for compatibility
2 parents 080b211 + ce5312d commit 129b3ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Common/AzurePowerShell.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public class AzurePowerShell
3838

3939
public const string TokenCacheFile = "TokenCache.dat";
4040

41+
public static ProductInfoHeaderValue UserAgentValue = new ProductInfoHeaderValue(
42+
"AzurePowershell",
43+
string.Format("Az{0}", AzurePowerShell.AssemblyVersion));
44+
4145
public static string ProfileDirectory = Path.Combine(
4246
#if NETSTANDARD
4347
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
4448
".Azure");
4549

46-
public static ProductInfoHeaderValue UserAgentValue = new ProductInfoHeaderValue(
47-
"AzurePowershell",
48-
string.Format("Az{0}", AzurePowerShell.AssemblyVersion));
49-
5050
public static string OldProfileDirectory = Path.Combine(
5151
#endif
5252
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),

0 commit comments

Comments
 (0)