@azure-typespec/http-client-csharp 1.0.0-alpha.20260925.3 → 1.0.0-alpha.20260929.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -6,9 +6,9 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "Azure.Generator.StubLibrary/1.0.0-alpha.20260925.3": {
9
+ "Azure.Generator.StubLibrary/1.0.0-alpha.20260929.3": {
10
10
  "dependencies": {
11
- "Azure.Generator": "1.0.0-alpha.20260925.3",
11
+ "Azure.Generator": "1.0.0-alpha.20260929.3",
12
12
  "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260924.3",
13
13
  "System.ClientModel": "1.16.0"
14
14
  },
@@ -16,26 +16,26 @@
16
16
  "Azure.Generator.StubLibrary.dll": {}
17
17
  }
18
18
  },
19
- "Azure.Core/1.62.0": {
19
+ "Azure.Core/1.63.0": {
20
20
  "dependencies": {
21
21
  "Microsoft.Bcl.AsyncInterfaces": "10.0.10",
22
22
  "Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
23
23
  "Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
24
- "Microsoft.Identity.Client": "4.84.2",
25
- "Microsoft.Identity.Client.Extensions.Msal": "4.84.2",
24
+ "Microsoft.Identity.Client": "4.90.0",
25
+ "Microsoft.Identity.Client.Extensions.Msal": "4.90.0",
26
26
  "System.ClientModel": "1.16.0",
27
27
  "System.Memory.Data": "10.0.10"
28
28
  },
29
29
  "runtime": {
30
30
  "lib/net10.0/Azure.Core.dll": {
31
- "assemblyVersion": "1.62.0.0",
32
- "fileVersion": "1.6200.26.42003"
31
+ "assemblyVersion": "1.63.0.0",
32
+ "fileVersion": "1.6300.26.47507"
33
33
  }
34
34
  }
35
35
  },
36
36
  "Azure.Core.Expressions.DataFactory/1.0.0": {
37
37
  "dependencies": {
38
- "Azure.Core": "1.62.0"
38
+ "Azure.Core": "1.63.0"
39
39
  },
40
40
  "runtime": {
41
41
  "lib/netstandard2.0/Azure.Core.Expressions.DataFactory.dll": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "Azure.ResourceManager/1.14.0": {
48
48
  "dependencies": {
49
- "Azure.Core": "1.62.0"
49
+ "Azure.Core": "1.63.0"
50
50
  },
51
51
  "runtime": {
52
52
  "lib/net10.0/Azure.ResourceManager.dll": {
@@ -400,26 +400,26 @@
400
400
  }
401
401
  }
402
402
  },
403
- "Microsoft.Identity.Client/4.84.2": {
403
+ "Microsoft.Identity.Client/4.90.0": {
404
404
  "dependencies": {
405
405
  "Microsoft.IdentityModel.Abstractions": "8.14.0"
406
406
  },
407
407
  "runtime": {
408
408
  "lib/net8.0/Microsoft.Identity.Client.dll": {
409
- "assemblyVersion": "4.84.2.0",
410
- "fileVersion": "4.84.2.0"
409
+ "assemblyVersion": "4.90.0.0",
410
+ "fileVersion": "4.90.0.0"
411
411
  }
412
412
  }
413
413
  },
414
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
414
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
415
415
  "dependencies": {
416
- "Microsoft.Identity.Client": "4.84.2",
416
+ "Microsoft.Identity.Client": "4.90.0",
417
417
  "System.Security.Cryptography.ProtectedData": "8.0.0"
418
418
  },
419
419
  "runtime": {
420
420
  "lib/net8.0/Microsoft.Identity.Client.Extensions.Msal.dll": {
421
- "assemblyVersion": "4.84.2.0",
422
- "fileVersion": "4.84.2.0"
421
+ "assemblyVersion": "4.90.0.0",
422
+ "fileVersion": "4.90.0.0"
423
423
  }
424
424
  }
425
425
  },
@@ -711,9 +711,9 @@
711
711
  }
712
712
  }
713
713
  },
714
- "Azure.Generator/1.0.0-alpha.20260925.3": {
714
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
715
715
  "dependencies": {
716
- "Azure.Core": "1.62.0",
716
+ "Azure.Core": "1.63.0",
717
717
  "Azure.Core.Expressions.DataFactory": "1.0.0",
718
718
  "Azure.ResourceManager": "1.14.0",
719
719
  "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260924.3"
@@ -721,24 +721,24 @@
721
721
  "runtime": {
722
722
  "Azure.Generator.dll": {
723
723
  "assemblyVersion": "1.0.0.0",
724
- "fileVersion": "1.0.26.47503"
724
+ "fileVersion": "1.0.26.47903"
725
725
  }
726
726
  }
727
727
  }
728
728
  }
729
729
  },
730
730
  "libraries": {
731
- "Azure.Generator.StubLibrary/1.0.0-alpha.20260925.3": {
731
+ "Azure.Generator.StubLibrary/1.0.0-alpha.20260929.3": {
732
732
  "type": "project",
733
733
  "serviceable": false,
734
734
  "sha512": ""
735
735
  },
736
- "Azure.Core/1.62.0": {
736
+ "Azure.Core/1.63.0": {
737
737
  "type": "package",
738
738
  "serviceable": true,
739
- "sha512": "sha512-C0ijs91ZW2uhF/VwGLXeayb+RwTWhDxKnrsmqPWg5HkYtPQ93mzaydyMCjAzE0AG5yHc1bpaPc+NPlZUgz3w8g==",
740
- "path": "azure.core/1.62.0",
741
- "hashPath": "azure.core.1.62.0.nupkg.sha512"
739
+ "sha512": "sha512-5egODg5yWcRV0kkAv22jQL7YmsfupX7intDYbxZMu8giASSQVfG5+mwC+BdJOWvhFT1Y+9KzuvbUGqAVEBzsfw==",
740
+ "path": "azure.core/1.63.0",
741
+ "hashPath": "azure.core.1.63.0.nupkg.sha512"
742
742
  },
743
743
  "Azure.Core.Expressions.DataFactory/1.0.0": {
744
744
  "type": "package",
@@ -873,19 +873,19 @@
873
873
  "path": "microsoft.extensions.primitives/10.0.10",
874
874
  "hashPath": "microsoft.extensions.primitives.10.0.10.nupkg.sha512"
875
875
  },
876
- "Microsoft.Identity.Client/4.84.2": {
876
+ "Microsoft.Identity.Client/4.90.0": {
877
877
  "type": "package",
878
878
  "serviceable": true,
879
- "sha512": "sha512-Va9FjmABSgj/lcUfHH0pBNQkmS7SNyepz2ERV7Yynp6QgEYpFdSqR6Vzy1WWipN8GS5pBHuXoZbqaDWuARCrHQ==",
880
- "path": "microsoft.identity.client/4.84.2",
881
- "hashPath": "microsoft.identity.client.4.84.2.nupkg.sha512"
879
+ "sha512": "sha512-oc5A0jmu083T3OW1JVYMrM1rekIL8SkBRB/byMMQjFuYlRZsMh3wDeCwwrz9sGI6XlP5BIqO7XWgjPpF3reF5A==",
880
+ "path": "microsoft.identity.client/4.90.0",
881
+ "hashPath": "microsoft.identity.client.4.90.0.nupkg.sha512"
882
882
  },
883
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
883
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
884
884
  "type": "package",
885
885
  "serviceable": true,
886
- "sha512": "sha512-+D98LaU3dOu/Nzs6kgbBJapMvH7iwYcAeC99XwSkpmEadsPv6rozecOl9P6m4A3RfpOuPt9e6J6TwwUUp3+M4w==",
887
- "path": "microsoft.identity.client.extensions.msal/4.84.2",
888
- "hashPath": "microsoft.identity.client.extensions.msal.4.84.2.nupkg.sha512"
886
+ "sha512": "sha512-/L7b+fNF+ITSw3SPlbgE7ax2MqVg/a60kHsDooKUbjYDdX88COTTwE20qRPT84fykehBTSmP7LSxh6b5hwIEOw==",
887
+ "path": "microsoft.identity.client.extensions.msal/4.90.0",
888
+ "hashPath": "microsoft.identity.client.extensions.msal.4.90.0.nupkg.sha512"
889
889
  },
890
890
  "Microsoft.IdentityModel.Abstractions/8.14.0": {
891
891
  "type": "package",
@@ -1069,7 +1069,7 @@
1069
1069
  "path": "system.security.cryptography.protecteddata/8.0.0",
1070
1070
  "hashPath": "system.security.cryptography.protecteddata.8.0.0.nupkg.sha512"
1071
1071
  },
1072
- "Azure.Generator/1.0.0-alpha.20260925.3": {
1072
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
1073
1073
  "type": "project",
1074
1074
  "serviceable": false,
1075
1075
  "sha512": ""
@@ -6,9 +6,9 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "Azure.Generator/1.0.0-alpha.20260925.3": {
9
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
10
10
  "dependencies": {
11
- "Azure.Core": "1.62.0",
11
+ "Azure.Core": "1.63.0",
12
12
  "Azure.Core.Expressions.DataFactory": "1.0.0",
13
13
  "Azure.ResourceManager": "1.14.0",
14
14
  "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260924.3"
@@ -17,26 +17,26 @@
17
17
  "Azure.Generator.dll": {}
18
18
  }
19
19
  },
20
- "Azure.Core/1.62.0": {
20
+ "Azure.Core/1.63.0": {
21
21
  "dependencies": {
22
22
  "Microsoft.Bcl.AsyncInterfaces": "10.0.10",
23
23
  "Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
24
24
  "Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
25
- "Microsoft.Identity.Client": "4.84.2",
26
- "Microsoft.Identity.Client.Extensions.Msal": "4.84.2",
25
+ "Microsoft.Identity.Client": "4.90.0",
26
+ "Microsoft.Identity.Client.Extensions.Msal": "4.90.0",
27
27
  "System.ClientModel": "1.16.0",
28
28
  "System.Memory.Data": "10.0.10"
29
29
  },
30
30
  "runtime": {
31
31
  "lib/net10.0/Azure.Core.dll": {
32
- "assemblyVersion": "1.62.0.0",
33
- "fileVersion": "1.6200.26.42003"
32
+ "assemblyVersion": "1.63.0.0",
33
+ "fileVersion": "1.6300.26.47507"
34
34
  }
35
35
  }
36
36
  },
37
37
  "Azure.Core.Expressions.DataFactory/1.0.0": {
38
38
  "dependencies": {
39
- "Azure.Core": "1.62.0"
39
+ "Azure.Core": "1.63.0"
40
40
  },
41
41
  "runtime": {
42
42
  "lib/netstandard2.0/Azure.Core.Expressions.DataFactory.dll": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "Azure.ResourceManager/1.14.0": {
49
49
  "dependencies": {
50
- "Azure.Core": "1.62.0"
50
+ "Azure.Core": "1.63.0"
51
51
  },
52
52
  "runtime": {
53
53
  "lib/net10.0/Azure.ResourceManager.dll": {
@@ -401,26 +401,26 @@
401
401
  }
402
402
  }
403
403
  },
404
- "Microsoft.Identity.Client/4.84.2": {
404
+ "Microsoft.Identity.Client/4.90.0": {
405
405
  "dependencies": {
406
406
  "Microsoft.IdentityModel.Abstractions": "8.14.0"
407
407
  },
408
408
  "runtime": {
409
409
  "lib/net8.0/Microsoft.Identity.Client.dll": {
410
- "assemblyVersion": "4.84.2.0",
411
- "fileVersion": "4.84.2.0"
410
+ "assemblyVersion": "4.90.0.0",
411
+ "fileVersion": "4.90.0.0"
412
412
  }
413
413
  }
414
414
  },
415
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
415
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
416
416
  "dependencies": {
417
- "Microsoft.Identity.Client": "4.84.2",
417
+ "Microsoft.Identity.Client": "4.90.0",
418
418
  "System.Security.Cryptography.ProtectedData": "8.0.0"
419
419
  },
420
420
  "runtime": {
421
421
  "lib/net8.0/Microsoft.Identity.Client.Extensions.Msal.dll": {
422
- "assemblyVersion": "4.84.2.0",
423
- "fileVersion": "4.84.2.0"
422
+ "assemblyVersion": "4.90.0.0",
423
+ "fileVersion": "4.90.0.0"
424
424
  }
425
425
  }
426
426
  },
@@ -715,17 +715,17 @@
715
715
  }
716
716
  },
717
717
  "libraries": {
718
- "Azure.Generator/1.0.0-alpha.20260925.3": {
718
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
719
719
  "type": "project",
720
720
  "serviceable": false,
721
721
  "sha512": ""
722
722
  },
723
- "Azure.Core/1.62.0": {
723
+ "Azure.Core/1.63.0": {
724
724
  "type": "package",
725
725
  "serviceable": true,
726
- "sha512": "sha512-C0ijs91ZW2uhF/VwGLXeayb+RwTWhDxKnrsmqPWg5HkYtPQ93mzaydyMCjAzE0AG5yHc1bpaPc+NPlZUgz3w8g==",
727
- "path": "azure.core/1.62.0",
728
- "hashPath": "azure.core.1.62.0.nupkg.sha512"
726
+ "sha512": "sha512-5egODg5yWcRV0kkAv22jQL7YmsfupX7intDYbxZMu8giASSQVfG5+mwC+BdJOWvhFT1Y+9KzuvbUGqAVEBzsfw==",
727
+ "path": "azure.core/1.63.0",
728
+ "hashPath": "azure.core.1.63.0.nupkg.sha512"
729
729
  },
730
730
  "Azure.Core.Expressions.DataFactory/1.0.0": {
731
731
  "type": "package",
@@ -860,19 +860,19 @@
860
860
  "path": "microsoft.extensions.primitives/10.0.10",
861
861
  "hashPath": "microsoft.extensions.primitives.10.0.10.nupkg.sha512"
862
862
  },
863
- "Microsoft.Identity.Client/4.84.2": {
863
+ "Microsoft.Identity.Client/4.90.0": {
864
864
  "type": "package",
865
865
  "serviceable": true,
866
- "sha512": "sha512-Va9FjmABSgj/lcUfHH0pBNQkmS7SNyepz2ERV7Yynp6QgEYpFdSqR6Vzy1WWipN8GS5pBHuXoZbqaDWuARCrHQ==",
867
- "path": "microsoft.identity.client/4.84.2",
868
- "hashPath": "microsoft.identity.client.4.84.2.nupkg.sha512"
866
+ "sha512": "sha512-oc5A0jmu083T3OW1JVYMrM1rekIL8SkBRB/byMMQjFuYlRZsMh3wDeCwwrz9sGI6XlP5BIqO7XWgjPpF3reF5A==",
867
+ "path": "microsoft.identity.client/4.90.0",
868
+ "hashPath": "microsoft.identity.client.4.90.0.nupkg.sha512"
869
869
  },
870
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
870
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
871
871
  "type": "package",
872
872
  "serviceable": true,
873
- "sha512": "sha512-+D98LaU3dOu/Nzs6kgbBJapMvH7iwYcAeC99XwSkpmEadsPv6rozecOl9P6m4A3RfpOuPt9e6J6TwwUUp3+M4w==",
874
- "path": "microsoft.identity.client.extensions.msal/4.84.2",
875
- "hashPath": "microsoft.identity.client.extensions.msal.4.84.2.nupkg.sha512"
873
+ "sha512": "sha512-/L7b+fNF+ITSw3SPlbgE7ax2MqVg/a60kHsDooKUbjYDdX88COTTwE20qRPT84fykehBTSmP7LSxh6b5hwIEOw==",
874
+ "path": "microsoft.identity.client.extensions.msal/4.90.0",
875
+ "hashPath": "microsoft.identity.client.extensions.msal.4.90.0.nupkg.sha512"
876
876
  },
877
877
  "Microsoft.IdentityModel.Abstractions/8.14.0": {
878
878
  "type": "package",
Binary file
Binary file
@@ -229,8 +229,8 @@
229
229
  <item>ClientProvider: Changes the internal AuthenticationPolicy constructor parameter type to
230
230
  HttpPipelinePolicy (Azure clients use Azure.Core policy types instead of the base library's
231
231
  AuthenticationPolicy), and modifies the Settings constructor to chain to the appropriate
232
- credential constructor (or to the internal constructor with null auth policy when no
233
- credentials are configured).</item>
232
+ credential constructor, select an authentication policy at runtime for dual-auth clients,
233
+ or pass a null policy when the client has no authentication.</item>
234
234
  </list>
235
235
  </summary>
236
236
  </member>
@@ -354,6 +354,16 @@
354
354
  False if neither is set.
355
355
  </returns>
356
356
  </member>
357
+ <member name="M:Azure.Core.AppContextSwitchHelper.GetConfigValue(System.String,System.String,System.Boolean)">
358
+ <summary>
359
+ Determines if either an AppContext switch or its corresponding Environment Variable is set,
360
+ returning <paramref name="defaultValue"/> when neither is set.
361
+ </summary>
362
+ <param name="appContexSwitchName">Name of the AppContext switch.</param>
363
+ <param name="environmentVariableName">Name of the Environment variable.</param>
364
+ <param name="defaultValue">The value to use when neither the switch nor the environment variable is set.</param>
365
+ <returns>The AppContext switch value if set; otherwise the parsed environment variable value; otherwise <paramref name="defaultValue"/>.</returns>
366
+ </member>
357
367
  <member name="M:Azure.Core.Pipeline.ClientDiagnostics.#ctor(Azure.Core.ClientOptions,System.Nullable{System.Boolean})">
358
368
  <summary>
359
369
  Initializes a new instance of the <see cref="T:Azure.Core.Pipeline.ClientDiagnostics"/> class.
@@ -38,5 +38,38 @@ namespace Azure.Core
38
38
  // Default to false.
39
39
  return false;
40
40
  }
41
+
42
+ /// <summary>
43
+ /// Determines if either an AppContext switch or its corresponding Environment Variable is set,
44
+ /// returning <paramref name="defaultValue"/> when neither is set.
45
+ /// </summary>
46
+ /// <param name="appContexSwitchName">Name of the AppContext switch.</param>
47
+ /// <param name="environmentVariableName">Name of the Environment variable.</param>
48
+ /// <param name="defaultValue">The value to use when neither the switch nor the environment variable is set.</param>
49
+ /// <returns>The AppContext switch value if set; otherwise the parsed environment variable value; otherwise <paramref name="defaultValue"/>.</returns>
50
+ public static bool GetConfigValue(string appContexSwitchName, string environmentVariableName, bool defaultValue)
51
+ {
52
+ // First check for the AppContext switch, giving it priority over the environment variable.
53
+ if (AppContext.TryGetSwitch(appContexSwitchName, out bool value))
54
+ {
55
+ return value;
56
+ }
57
+ // AppContext switch wasn't used. Check the environment variable.
58
+ string? envVar = Environment.GetEnvironmentVariable(environmentVariableName);
59
+ if (envVar != null)
60
+ {
61
+ if (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1"))
62
+ {
63
+ return true;
64
+ }
65
+ if (envVar.Equals("false", StringComparison.OrdinalIgnoreCase) || envVar.Equals("0"))
66
+ {
67
+ return false;
68
+ }
69
+ }
70
+
71
+ // Neither the switch nor the environment variable is set.
72
+ return defaultValue;
73
+ }
41
74
  }
42
75
  }
@@ -6,9 +6,9 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "Azure.Generator.StubLibrary/1.0.0-alpha.20260925.3": {
9
+ "Azure.Generator.StubLibrary/1.0.0-alpha.20260929.3": {
10
10
  "dependencies": {
11
- "Azure.Generator": "1.0.0-alpha.20260925.3",
11
+ "Azure.Generator": "1.0.0-alpha.20260929.3",
12
12
  "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260924.3",
13
13
  "System.ClientModel": "1.16.0"
14
14
  },
@@ -16,26 +16,26 @@
16
16
  "Azure.Generator.StubLibrary.dll": {}
17
17
  }
18
18
  },
19
- "Azure.Core/1.62.0": {
19
+ "Azure.Core/1.63.0": {
20
20
  "dependencies": {
21
21
  "Microsoft.Bcl.AsyncInterfaces": "10.0.10",
22
22
  "Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
23
23
  "Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
24
- "Microsoft.Identity.Client": "4.84.2",
25
- "Microsoft.Identity.Client.Extensions.Msal": "4.84.2",
24
+ "Microsoft.Identity.Client": "4.90.0",
25
+ "Microsoft.Identity.Client.Extensions.Msal": "4.90.0",
26
26
  "System.ClientModel": "1.16.0",
27
27
  "System.Memory.Data": "10.0.10"
28
28
  },
29
29
  "runtime": {
30
30
  "lib/net10.0/Azure.Core.dll": {
31
- "assemblyVersion": "1.62.0.0",
32
- "fileVersion": "1.6200.26.42003"
31
+ "assemblyVersion": "1.63.0.0",
32
+ "fileVersion": "1.6300.26.47507"
33
33
  }
34
34
  }
35
35
  },
36
36
  "Azure.Core.Expressions.DataFactory/1.0.0": {
37
37
  "dependencies": {
38
- "Azure.Core": "1.62.0"
38
+ "Azure.Core": "1.63.0"
39
39
  },
40
40
  "runtime": {
41
41
  "lib/netstandard2.0/Azure.Core.Expressions.DataFactory.dll": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "Azure.ResourceManager/1.14.0": {
48
48
  "dependencies": {
49
- "Azure.Core": "1.62.0"
49
+ "Azure.Core": "1.63.0"
50
50
  },
51
51
  "runtime": {
52
52
  "lib/net10.0/Azure.ResourceManager.dll": {
@@ -400,26 +400,26 @@
400
400
  }
401
401
  }
402
402
  },
403
- "Microsoft.Identity.Client/4.84.2": {
403
+ "Microsoft.Identity.Client/4.90.0": {
404
404
  "dependencies": {
405
405
  "Microsoft.IdentityModel.Abstractions": "8.14.0"
406
406
  },
407
407
  "runtime": {
408
408
  "lib/net8.0/Microsoft.Identity.Client.dll": {
409
- "assemblyVersion": "4.84.2.0",
410
- "fileVersion": "4.84.2.0"
409
+ "assemblyVersion": "4.90.0.0",
410
+ "fileVersion": "4.90.0.0"
411
411
  }
412
412
  }
413
413
  },
414
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
414
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
415
415
  "dependencies": {
416
- "Microsoft.Identity.Client": "4.84.2",
416
+ "Microsoft.Identity.Client": "4.90.0",
417
417
  "System.Security.Cryptography.ProtectedData": "8.0.0"
418
418
  },
419
419
  "runtime": {
420
420
  "lib/net8.0/Microsoft.Identity.Client.Extensions.Msal.dll": {
421
- "assemblyVersion": "4.84.2.0",
422
- "fileVersion": "4.84.2.0"
421
+ "assemblyVersion": "4.90.0.0",
422
+ "fileVersion": "4.90.0.0"
423
423
  }
424
424
  }
425
425
  },
@@ -711,9 +711,9 @@
711
711
  }
712
712
  }
713
713
  },
714
- "Azure.Generator/1.0.0-alpha.20260925.3": {
714
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
715
715
  "dependencies": {
716
- "Azure.Core": "1.62.0",
716
+ "Azure.Core": "1.63.0",
717
717
  "Azure.Core.Expressions.DataFactory": "1.0.0",
718
718
  "Azure.ResourceManager": "1.14.0",
719
719
  "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260924.3"
@@ -721,24 +721,24 @@
721
721
  "runtime": {
722
722
  "Azure.Generator.dll": {
723
723
  "assemblyVersion": "1.0.0.0",
724
- "fileVersion": "1.0.26.47503"
724
+ "fileVersion": "1.0.26.47903"
725
725
  }
726
726
  }
727
727
  }
728
728
  }
729
729
  },
730
730
  "libraries": {
731
- "Azure.Generator.StubLibrary/1.0.0-alpha.20260925.3": {
731
+ "Azure.Generator.StubLibrary/1.0.0-alpha.20260929.3": {
732
732
  "type": "project",
733
733
  "serviceable": false,
734
734
  "sha512": ""
735
735
  },
736
- "Azure.Core/1.62.0": {
736
+ "Azure.Core/1.63.0": {
737
737
  "type": "package",
738
738
  "serviceable": true,
739
- "sha512": "sha512-C0ijs91ZW2uhF/VwGLXeayb+RwTWhDxKnrsmqPWg5HkYtPQ93mzaydyMCjAzE0AG5yHc1bpaPc+NPlZUgz3w8g==",
740
- "path": "azure.core/1.62.0",
741
- "hashPath": "azure.core.1.62.0.nupkg.sha512"
739
+ "sha512": "sha512-5egODg5yWcRV0kkAv22jQL7YmsfupX7intDYbxZMu8giASSQVfG5+mwC+BdJOWvhFT1Y+9KzuvbUGqAVEBzsfw==",
740
+ "path": "azure.core/1.63.0",
741
+ "hashPath": "azure.core.1.63.0.nupkg.sha512"
742
742
  },
743
743
  "Azure.Core.Expressions.DataFactory/1.0.0": {
744
744
  "type": "package",
@@ -873,19 +873,19 @@
873
873
  "path": "microsoft.extensions.primitives/10.0.10",
874
874
  "hashPath": "microsoft.extensions.primitives.10.0.10.nupkg.sha512"
875
875
  },
876
- "Microsoft.Identity.Client/4.84.2": {
876
+ "Microsoft.Identity.Client/4.90.0": {
877
877
  "type": "package",
878
878
  "serviceable": true,
879
- "sha512": "sha512-Va9FjmABSgj/lcUfHH0pBNQkmS7SNyepz2ERV7Yynp6QgEYpFdSqR6Vzy1WWipN8GS5pBHuXoZbqaDWuARCrHQ==",
880
- "path": "microsoft.identity.client/4.84.2",
881
- "hashPath": "microsoft.identity.client.4.84.2.nupkg.sha512"
879
+ "sha512": "sha512-oc5A0jmu083T3OW1JVYMrM1rekIL8SkBRB/byMMQjFuYlRZsMh3wDeCwwrz9sGI6XlP5BIqO7XWgjPpF3reF5A==",
880
+ "path": "microsoft.identity.client/4.90.0",
881
+ "hashPath": "microsoft.identity.client.4.90.0.nupkg.sha512"
882
882
  },
883
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
883
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
884
884
  "type": "package",
885
885
  "serviceable": true,
886
- "sha512": "sha512-+D98LaU3dOu/Nzs6kgbBJapMvH7iwYcAeC99XwSkpmEadsPv6rozecOl9P6m4A3RfpOuPt9e6J6TwwUUp3+M4w==",
887
- "path": "microsoft.identity.client.extensions.msal/4.84.2",
888
- "hashPath": "microsoft.identity.client.extensions.msal.4.84.2.nupkg.sha512"
886
+ "sha512": "sha512-/L7b+fNF+ITSw3SPlbgE7ax2MqVg/a60kHsDooKUbjYDdX88COTTwE20qRPT84fykehBTSmP7LSxh6b5hwIEOw==",
887
+ "path": "microsoft.identity.client.extensions.msal/4.90.0",
888
+ "hashPath": "microsoft.identity.client.extensions.msal.4.90.0.nupkg.sha512"
889
889
  },
890
890
  "Microsoft.IdentityModel.Abstractions/8.14.0": {
891
891
  "type": "package",
@@ -1069,7 +1069,7 @@
1069
1069
  "path": "system.security.cryptography.protecteddata/8.0.0",
1070
1070
  "hashPath": "system.security.cryptography.protecteddata.8.0.0.nupkg.sha512"
1071
1071
  },
1072
- "Azure.Generator/1.0.0-alpha.20260925.3": {
1072
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
1073
1073
  "type": "project",
1074
1074
  "serviceable": false,
1075
1075
  "sha512": ""
@@ -6,9 +6,9 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "Azure.Generator/1.0.0-alpha.20260925.3": {
9
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
10
10
  "dependencies": {
11
- "Azure.Core": "1.62.0",
11
+ "Azure.Core": "1.63.0",
12
12
  "Azure.Core.Expressions.DataFactory": "1.0.0",
13
13
  "Azure.ResourceManager": "1.14.0",
14
14
  "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260924.3"
@@ -17,26 +17,26 @@
17
17
  "Azure.Generator.dll": {}
18
18
  }
19
19
  },
20
- "Azure.Core/1.62.0": {
20
+ "Azure.Core/1.63.0": {
21
21
  "dependencies": {
22
22
  "Microsoft.Bcl.AsyncInterfaces": "10.0.10",
23
23
  "Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
24
24
  "Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
25
- "Microsoft.Identity.Client": "4.84.2",
26
- "Microsoft.Identity.Client.Extensions.Msal": "4.84.2",
25
+ "Microsoft.Identity.Client": "4.90.0",
26
+ "Microsoft.Identity.Client.Extensions.Msal": "4.90.0",
27
27
  "System.ClientModel": "1.16.0",
28
28
  "System.Memory.Data": "10.0.10"
29
29
  },
30
30
  "runtime": {
31
31
  "lib/net10.0/Azure.Core.dll": {
32
- "assemblyVersion": "1.62.0.0",
33
- "fileVersion": "1.6200.26.42003"
32
+ "assemblyVersion": "1.63.0.0",
33
+ "fileVersion": "1.6300.26.47507"
34
34
  }
35
35
  }
36
36
  },
37
37
  "Azure.Core.Expressions.DataFactory/1.0.0": {
38
38
  "dependencies": {
39
- "Azure.Core": "1.62.0"
39
+ "Azure.Core": "1.63.0"
40
40
  },
41
41
  "runtime": {
42
42
  "lib/netstandard2.0/Azure.Core.Expressions.DataFactory.dll": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "Azure.ResourceManager/1.14.0": {
49
49
  "dependencies": {
50
- "Azure.Core": "1.62.0"
50
+ "Azure.Core": "1.63.0"
51
51
  },
52
52
  "runtime": {
53
53
  "lib/net10.0/Azure.ResourceManager.dll": {
@@ -401,26 +401,26 @@
401
401
  }
402
402
  }
403
403
  },
404
- "Microsoft.Identity.Client/4.84.2": {
404
+ "Microsoft.Identity.Client/4.90.0": {
405
405
  "dependencies": {
406
406
  "Microsoft.IdentityModel.Abstractions": "8.14.0"
407
407
  },
408
408
  "runtime": {
409
409
  "lib/net8.0/Microsoft.Identity.Client.dll": {
410
- "assemblyVersion": "4.84.2.0",
411
- "fileVersion": "4.84.2.0"
410
+ "assemblyVersion": "4.90.0.0",
411
+ "fileVersion": "4.90.0.0"
412
412
  }
413
413
  }
414
414
  },
415
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
415
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
416
416
  "dependencies": {
417
- "Microsoft.Identity.Client": "4.84.2",
417
+ "Microsoft.Identity.Client": "4.90.0",
418
418
  "System.Security.Cryptography.ProtectedData": "8.0.0"
419
419
  },
420
420
  "runtime": {
421
421
  "lib/net8.0/Microsoft.Identity.Client.Extensions.Msal.dll": {
422
- "assemblyVersion": "4.84.2.0",
423
- "fileVersion": "4.84.2.0"
422
+ "assemblyVersion": "4.90.0.0",
423
+ "fileVersion": "4.90.0.0"
424
424
  }
425
425
  }
426
426
  },
@@ -715,17 +715,17 @@
715
715
  }
716
716
  },
717
717
  "libraries": {
718
- "Azure.Generator/1.0.0-alpha.20260925.3": {
718
+ "Azure.Generator/1.0.0-alpha.20260929.3": {
719
719
  "type": "project",
720
720
  "serviceable": false,
721
721
  "sha512": ""
722
722
  },
723
- "Azure.Core/1.62.0": {
723
+ "Azure.Core/1.63.0": {
724
724
  "type": "package",
725
725
  "serviceable": true,
726
- "sha512": "sha512-C0ijs91ZW2uhF/VwGLXeayb+RwTWhDxKnrsmqPWg5HkYtPQ93mzaydyMCjAzE0AG5yHc1bpaPc+NPlZUgz3w8g==",
727
- "path": "azure.core/1.62.0",
728
- "hashPath": "azure.core.1.62.0.nupkg.sha512"
726
+ "sha512": "sha512-5egODg5yWcRV0kkAv22jQL7YmsfupX7intDYbxZMu8giASSQVfG5+mwC+BdJOWvhFT1Y+9KzuvbUGqAVEBzsfw==",
727
+ "path": "azure.core/1.63.0",
728
+ "hashPath": "azure.core.1.63.0.nupkg.sha512"
729
729
  },
730
730
  "Azure.Core.Expressions.DataFactory/1.0.0": {
731
731
  "type": "package",
@@ -860,19 +860,19 @@
860
860
  "path": "microsoft.extensions.primitives/10.0.10",
861
861
  "hashPath": "microsoft.extensions.primitives.10.0.10.nupkg.sha512"
862
862
  },
863
- "Microsoft.Identity.Client/4.84.2": {
863
+ "Microsoft.Identity.Client/4.90.0": {
864
864
  "type": "package",
865
865
  "serviceable": true,
866
- "sha512": "sha512-Va9FjmABSgj/lcUfHH0pBNQkmS7SNyepz2ERV7Yynp6QgEYpFdSqR6Vzy1WWipN8GS5pBHuXoZbqaDWuARCrHQ==",
867
- "path": "microsoft.identity.client/4.84.2",
868
- "hashPath": "microsoft.identity.client.4.84.2.nupkg.sha512"
866
+ "sha512": "sha512-oc5A0jmu083T3OW1JVYMrM1rekIL8SkBRB/byMMQjFuYlRZsMh3wDeCwwrz9sGI6XlP5BIqO7XWgjPpF3reF5A==",
867
+ "path": "microsoft.identity.client/4.90.0",
868
+ "hashPath": "microsoft.identity.client.4.90.0.nupkg.sha512"
869
869
  },
870
- "Microsoft.Identity.Client.Extensions.Msal/4.84.2": {
870
+ "Microsoft.Identity.Client.Extensions.Msal/4.90.0": {
871
871
  "type": "package",
872
872
  "serviceable": true,
873
- "sha512": "sha512-+D98LaU3dOu/Nzs6kgbBJapMvH7iwYcAeC99XwSkpmEadsPv6rozecOl9P6m4A3RfpOuPt9e6J6TwwUUp3+M4w==",
874
- "path": "microsoft.identity.client.extensions.msal/4.84.2",
875
- "hashPath": "microsoft.identity.client.extensions.msal.4.84.2.nupkg.sha512"
873
+ "sha512": "sha512-/L7b+fNF+ITSw3SPlbgE7ax2MqVg/a60kHsDooKUbjYDdX88COTTwE20qRPT84fykehBTSmP7LSxh6b5hwIEOw==",
874
+ "path": "microsoft.identity.client.extensions.msal/4.90.0",
875
+ "hashPath": "microsoft.identity.client.extensions.msal.4.90.0.nupkg.sha512"
876
876
  },
877
877
  "Microsoft.IdentityModel.Abstractions/8.14.0": {
878
878
  "type": "package",
@@ -229,8 +229,8 @@
229
229
  <item>ClientProvider: Changes the internal AuthenticationPolicy constructor parameter type to
230
230
  HttpPipelinePolicy (Azure clients use Azure.Core policy types instead of the base library's
231
231
  AuthenticationPolicy), and modifies the Settings constructor to chain to the appropriate
232
- credential constructor (or to the internal constructor with null auth policy when no
233
- credentials are configured).</item>
232
+ credential constructor, select an authentication policy at runtime for dual-auth clients,
233
+ or pass a null policy when the client has no authentication.</item>
234
234
  </list>
235
235
  </summary>
236
236
  </member>
@@ -354,6 +354,16 @@
354
354
  False if neither is set.
355
355
  </returns>
356
356
  </member>
357
+ <member name="M:Azure.Core.AppContextSwitchHelper.GetConfigValue(System.String,System.String,System.Boolean)">
358
+ <summary>
359
+ Determines if either an AppContext switch or its corresponding Environment Variable is set,
360
+ returning <paramref name="defaultValue"/> when neither is set.
361
+ </summary>
362
+ <param name="appContexSwitchName">Name of the AppContext switch.</param>
363
+ <param name="environmentVariableName">Name of the Environment variable.</param>
364
+ <param name="defaultValue">The value to use when neither the switch nor the environment variable is set.</param>
365
+ <returns>The AppContext switch value if set; otherwise the parsed environment variable value; otherwise <paramref name="defaultValue"/>.</returns>
366
+ </member>
357
367
  <member name="M:Azure.Core.Pipeline.ClientDiagnostics.#ctor(Azure.Core.ClientOptions,System.Nullable{System.Boolean})">
358
368
  <summary>
359
369
  Initializes a new instance of the <see cref="T:Azure.Core.Pipeline.ClientDiagnostics"/> class.
@@ -38,5 +38,38 @@ namespace Azure.Core
38
38
  // Default to false.
39
39
  return false;
40
40
  }
41
+
42
+ /// <summary>
43
+ /// Determines if either an AppContext switch or its corresponding Environment Variable is set,
44
+ /// returning <paramref name="defaultValue"/> when neither is set.
45
+ /// </summary>
46
+ /// <param name="appContexSwitchName">Name of the AppContext switch.</param>
47
+ /// <param name="environmentVariableName">Name of the Environment variable.</param>
48
+ /// <param name="defaultValue">The value to use when neither the switch nor the environment variable is set.</param>
49
+ /// <returns>The AppContext switch value if set; otherwise the parsed environment variable value; otherwise <paramref name="defaultValue"/>.</returns>
50
+ public static bool GetConfigValue(string appContexSwitchName, string environmentVariableName, bool defaultValue)
51
+ {
52
+ // First check for the AppContext switch, giving it priority over the environment variable.
53
+ if (AppContext.TryGetSwitch(appContexSwitchName, out bool value))
54
+ {
55
+ return value;
56
+ }
57
+ // AppContext switch wasn't used. Check the environment variable.
58
+ string? envVar = Environment.GetEnvironmentVariable(environmentVariableName);
59
+ if (envVar != null)
60
+ {
61
+ if (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1"))
62
+ {
63
+ return true;
64
+ }
65
+ if (envVar.Equals("false", StringComparison.OrdinalIgnoreCase) || envVar.Equals("0"))
66
+ {
67
+ return false;
68
+ }
69
+ }
70
+
71
+ // Neither the switch nor the environment variable is set.
72
+ return defaultValue;
73
+ }
41
74
  }
42
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-typespec/http-client-csharp",
3
- "version": "1.0.0-alpha.20260925.3",
3
+ "version": "1.0.0-alpha.20260929.3",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library for emitting Azure libraries for C#.",
6
6
  "readme": "https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp/README.md",