@azure-typespec/http-client-csharp-provisioning 1.0.0-alpha.20260916.3 → 1.0.0-alpha.20261005.1
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.
- package/dist/generator/Azure.Generator.Provisioning.deps.json +37 -37
- package/dist/generator/Azure.Generator.Provisioning.dll +0 -0
- package/dist/generator/Azure.Generator.Provisioning.pdb +0 -0
- package/dist/generator/Azure.Generator.Provisioning.xml +10 -0
- package/dist/generator/Azure.Generator.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.Input.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.dll +0 -0
- package/dist/generator/Shared/Core/AppContextSwitchHelper.cs +33 -0
- package/dist/generator/System.ClientModel.dll +0 -0
- package/dist/generator/net10.0/Azure.Generator.Provisioning.deps.json +37 -37
- package/dist/generator/net10.0/Azure.Generator.Provisioning.dll +0 -0
- package/dist/generator/net10.0/Azure.Generator.Provisioning.pdb +0 -0
- package/dist/generator/net10.0/Azure.Generator.Provisioning.xml +10 -0
- package/dist/generator/net10.0/Azure.Generator.dll +0 -0
- package/dist/generator/net10.0/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
- package/dist/generator/net10.0/Microsoft.TypeSpec.Generator.Input.dll +0 -0
- package/dist/generator/net10.0/Microsoft.TypeSpec.Generator.dll +0 -0
- package/dist/generator/net10.0/Shared/Core/AppContextSwitchHelper.cs +33 -0
- package/dist/generator/net10.0/System.ClientModel.dll +0 -0
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v10.0": {
|
|
9
|
-
"Azure.Generator.Provisioning/1.0.0-alpha.
|
|
9
|
+
"Azure.Generator.Provisioning/1.0.0-alpha.20261005.1": {
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"Azure.Generator": "1.0.0-alpha.
|
|
11
|
+
"Azure.Generator": "1.0.0-alpha.20260922.2",
|
|
12
12
|
"Azure.Generator.Management": "1.0.0-alpha.20260907.1",
|
|
13
13
|
"Azure.Provisioning": "1.6.0"
|
|
14
14
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
|
|
24
24
|
"Microsoft.Identity.Client": "4.84.2",
|
|
25
25
|
"Microsoft.Identity.Client.Extensions.Msal": "4.84.2",
|
|
26
|
-
"System.ClientModel": "1.
|
|
26
|
+
"System.ClientModel": "1.16.0",
|
|
27
27
|
"System.Memory.Data": "10.0.10"
|
|
28
28
|
},
|
|
29
29
|
"runtime": {
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"Azure.Generator/1.0.0-alpha.
|
|
47
|
+
"Azure.Generator/1.0.0-alpha.20260922.2": {
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"Azure.Core": "1.62.0",
|
|
50
50
|
"Azure.Core.Expressions.DataFactory": "1.0.0",
|
|
51
51
|
"Azure.ResourceManager": "1.14.0",
|
|
52
|
-
"Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.
|
|
52
|
+
"Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260918.2"
|
|
53
53
|
},
|
|
54
54
|
"runtime": {
|
|
55
55
|
"lib/net10.0/Azure.Generator.dll": {
|
|
56
56
|
"assemblyVersion": "1.0.0.0",
|
|
57
|
-
"fileVersion": "1.0.26.
|
|
57
|
+
"fileVersion": "1.0.26.47202"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"Azure.Generator.Management/1.0.0-alpha.20260907.1": {
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"Azure.Core": "1.62.0",
|
|
64
|
-
"Azure.Generator": "1.0.0-alpha.
|
|
64
|
+
"Azure.Generator": "1.0.0-alpha.20260922.2",
|
|
65
65
|
"Azure.ResourceManager": "1.14.0",
|
|
66
66
|
"Humanizer.Core": "3.0.10"
|
|
67
67
|
},
|
|
@@ -478,12 +478,12 @@
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
|
-
"Microsoft.TypeSpec.Generator/1.0.0-alpha.
|
|
481
|
+
"Microsoft.TypeSpec.Generator/1.0.0-alpha.20260918.2": {
|
|
482
482
|
"dependencies": {
|
|
483
483
|
"CommandLineParser": "2.9.1",
|
|
484
484
|
"Microsoft.Build": "17.9.5",
|
|
485
485
|
"Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
|
|
486
|
-
"Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.
|
|
486
|
+
"Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.20260918.2",
|
|
487
487
|
"NuGet.Configuration": "6.14.3",
|
|
488
488
|
"NuGet.Protocol": "6.14.3",
|
|
489
489
|
"NuGet.Versioning": "6.14.3",
|
|
@@ -497,11 +497,11 @@
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
|
-
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.
|
|
500
|
+
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20260918.2": {
|
|
501
501
|
"dependencies": {
|
|
502
502
|
"Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
|
|
503
|
-
"Microsoft.TypeSpec.Generator": "1.0.0-alpha.
|
|
504
|
-
"System.ClientModel": "1.
|
|
503
|
+
"Microsoft.TypeSpec.Generator": "1.0.0-alpha.20260918.2",
|
|
504
|
+
"System.ClientModel": "1.16.0"
|
|
505
505
|
},
|
|
506
506
|
"runtime": {
|
|
507
507
|
"lib/net10.0/Microsoft.TypeSpec.Generator.ClientModel.dll": {
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
|
-
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.
|
|
513
|
+
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20260918.2": {
|
|
514
514
|
"dependencies": {
|
|
515
515
|
"Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
|
|
516
516
|
"System.Memory.Data": "10.0.10"
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
|
-
"System.ClientModel/1.
|
|
597
|
+
"System.ClientModel/1.16.0": {
|
|
598
598
|
"dependencies": {
|
|
599
599
|
"Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
|
|
600
600
|
"Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
|
|
@@ -603,8 +603,8 @@
|
|
|
603
603
|
},
|
|
604
604
|
"runtime": {
|
|
605
605
|
"lib/net10.0/System.ClientModel.dll": {
|
|
606
|
-
"assemblyVersion": "1.
|
|
607
|
-
"fileVersion": "1.
|
|
606
|
+
"assemblyVersion": "1.16.0.0",
|
|
607
|
+
"fileVersion": "1.1600.26.46705"
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
},
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
},
|
|
755
755
|
"libraries": {
|
|
756
|
-
"Azure.Generator.Provisioning/1.0.0-alpha.
|
|
756
|
+
"Azure.Generator.Provisioning/1.0.0-alpha.20261005.1": {
|
|
757
757
|
"type": "project",
|
|
758
758
|
"serviceable": false,
|
|
759
759
|
"sha512": ""
|
|
@@ -772,12 +772,12 @@
|
|
|
772
772
|
"path": "azure.core.expressions.datafactory/1.0.0",
|
|
773
773
|
"hashPath": "azure.core.expressions.datafactory.1.0.0.nupkg.sha512"
|
|
774
774
|
},
|
|
775
|
-
"Azure.Generator/1.0.0-alpha.
|
|
775
|
+
"Azure.Generator/1.0.0-alpha.20260922.2": {
|
|
776
776
|
"type": "package",
|
|
777
777
|
"serviceable": true,
|
|
778
|
-
"sha512": "sha512-
|
|
779
|
-
"path": "azure.generator/1.0.0-alpha.
|
|
780
|
-
"hashPath": "azure.generator.1.0.0-alpha.
|
|
778
|
+
"sha512": "sha512-9RJ2uZ+i1kocVEWUK1i5FGHcW4qZSRHG+26NS5yw13yhOgpS3xuFcQdeKVftoX6mLQYS5K9V9kyD6OqGur99Iw==",
|
|
779
|
+
"path": "azure.generator/1.0.0-alpha.20260922.2",
|
|
780
|
+
"hashPath": "azure.generator.1.0.0-alpha.20260922.2.nupkg.sha512"
|
|
781
781
|
},
|
|
782
782
|
"Azure.Generator.Management/1.0.0-alpha.20260907.1": {
|
|
783
783
|
"type": "package",
|
|
@@ -947,26 +947,26 @@
|
|
|
947
947
|
"path": "microsoft.net.stringtools/17.9.5",
|
|
948
948
|
"hashPath": "microsoft.net.stringtools.17.9.5.nupkg.sha512"
|
|
949
949
|
},
|
|
950
|
-
"Microsoft.TypeSpec.Generator/1.0.0-alpha.
|
|
950
|
+
"Microsoft.TypeSpec.Generator/1.0.0-alpha.20260918.2": {
|
|
951
951
|
"type": "package",
|
|
952
952
|
"serviceable": true,
|
|
953
|
-
"sha512": "sha512-
|
|
954
|
-
"path": "microsoft.typespec.generator/1.0.0-alpha.
|
|
955
|
-
"hashPath": "microsoft.typespec.generator.1.0.0-alpha.
|
|
953
|
+
"sha512": "sha512-mnkaNC9EkERRZnaR0GGAl6+BJpAaF0xqwrUDHr1WDd8rp0xK8tHW9nz0kNCnSkye7yQSfLJXidawwF0ZgpastQ==",
|
|
954
|
+
"path": "microsoft.typespec.generator/1.0.0-alpha.20260918.2",
|
|
955
|
+
"hashPath": "microsoft.typespec.generator.1.0.0-alpha.20260918.2.nupkg.sha512"
|
|
956
956
|
},
|
|
957
|
-
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.
|
|
957
|
+
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20260918.2": {
|
|
958
958
|
"type": "package",
|
|
959
959
|
"serviceable": true,
|
|
960
|
-
"sha512": "sha512-
|
|
961
|
-
"path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.
|
|
962
|
-
"hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.
|
|
960
|
+
"sha512": "sha512-ZpRpFWM8mlEcQQ84j7ecJdyejQeQ+D2SuzKiTxCGWAi5wuI4FpSY2Ialfj3TjNDgcXY5YMS8highEK58pM7Uzg==",
|
|
961
|
+
"path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.20260918.2",
|
|
962
|
+
"hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.20260918.2.nupkg.sha512"
|
|
963
963
|
},
|
|
964
|
-
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.
|
|
964
|
+
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20260918.2": {
|
|
965
965
|
"type": "package",
|
|
966
966
|
"serviceable": true,
|
|
967
|
-
"sha512": "sha512-
|
|
968
|
-
"path": "microsoft.typespec.generator.input/1.0.0-alpha.
|
|
969
|
-
"hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.
|
|
967
|
+
"sha512": "sha512-dcrhDsn71inUOtmtj8fShi4yjMr6lJBHS0p2mOtNk4nAEaSWsLwrUA7l7ucdC3As8inMxqR0Uf2C2jbdwyEU2Q==",
|
|
968
|
+
"path": "microsoft.typespec.generator.input/1.0.0-alpha.20260918.2",
|
|
969
|
+
"hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.20260918.2.nupkg.sha512"
|
|
970
970
|
},
|
|
971
971
|
"Newtonsoft.Json/13.0.3": {
|
|
972
972
|
"type": "package",
|
|
@@ -1017,12 +1017,12 @@
|
|
|
1017
1017
|
"path": "nuget.versioning/6.14.3",
|
|
1018
1018
|
"hashPath": "nuget.versioning.6.14.3.nupkg.sha512"
|
|
1019
1019
|
},
|
|
1020
|
-
"System.ClientModel/1.
|
|
1020
|
+
"System.ClientModel/1.16.0": {
|
|
1021
1021
|
"type": "package",
|
|
1022
1022
|
"serviceable": true,
|
|
1023
|
-
"sha512": "sha512-
|
|
1024
|
-
"path": "system.clientmodel/1.
|
|
1025
|
-
"hashPath": "system.clientmodel.1.
|
|
1023
|
+
"sha512": "sha512-vLljZON+8lXDUtsPP8uwsPvsBSQaUHhh8NvB+D9TQsXu5n622RLtuLyZAcyIFc98b8ixrwD0AhzUQhtg2NwJnQ==",
|
|
1024
|
+
"path": "system.clientmodel/1.16.0",
|
|
1025
|
+
"hashPath": "system.clientmodel.1.16.0.nupkg.sha512"
|
|
1026
1026
|
},
|
|
1027
1027
|
"System.ComponentModel.Composition/8.0.0": {
|
|
1028
1028
|
"type": "package",
|
|
Binary file
|
|
Binary file
|
|
@@ -762,6 +762,16 @@
|
|
|
762
762
|
False if neither is set.
|
|
763
763
|
</returns>
|
|
764
764
|
</member>
|
|
765
|
+
<member name="M:Azure.Core.AppContextSwitchHelper.GetConfigValue(System.String,System.String,System.Boolean)">
|
|
766
|
+
<summary>
|
|
767
|
+
Determines if either an AppContext switch or its corresponding Environment Variable is set,
|
|
768
|
+
returning <paramref name="defaultValue"/> when neither is set.
|
|
769
|
+
</summary>
|
|
770
|
+
<param name="appContexSwitchName">Name of the AppContext switch.</param>
|
|
771
|
+
<param name="environmentVariableName">Name of the Environment variable.</param>
|
|
772
|
+
<param name="defaultValue">The value to use when neither the switch nor the environment variable is set.</param>
|
|
773
|
+
<returns>The AppContext switch value if set; otherwise the parsed environment variable value; otherwise <paramref name="defaultValue"/>.</returns>
|
|
774
|
+
</member>
|
|
765
775
|
<member name="T:Azure.Core.SequentialDelayStrategy">
|
|
766
776
|
<summary>
|
|
767
777
|
A delay strategy that uses a fixed sequence of delays with no jitter applied. This is used by management LROs.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
}
|
|
Binary file
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v10.0": {
|
|
9
|
-
"Azure.Generator.Provisioning/1.0.0-alpha.
|
|
9
|
+
"Azure.Generator.Provisioning/1.0.0-alpha.20261005.1": {
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"Azure.Generator": "1.0.0-alpha.
|
|
11
|
+
"Azure.Generator": "1.0.0-alpha.20260922.2",
|
|
12
12
|
"Azure.Generator.Management": "1.0.0-alpha.20260907.1",
|
|
13
13
|
"Azure.Provisioning": "1.6.0"
|
|
14
14
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
|
|
24
24
|
"Microsoft.Identity.Client": "4.84.2",
|
|
25
25
|
"Microsoft.Identity.Client.Extensions.Msal": "4.84.2",
|
|
26
|
-
"System.ClientModel": "1.
|
|
26
|
+
"System.ClientModel": "1.16.0",
|
|
27
27
|
"System.Memory.Data": "10.0.10"
|
|
28
28
|
},
|
|
29
29
|
"runtime": {
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"Azure.Generator/1.0.0-alpha.
|
|
47
|
+
"Azure.Generator/1.0.0-alpha.20260922.2": {
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"Azure.Core": "1.62.0",
|
|
50
50
|
"Azure.Core.Expressions.DataFactory": "1.0.0",
|
|
51
51
|
"Azure.ResourceManager": "1.14.0",
|
|
52
|
-
"Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.
|
|
52
|
+
"Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20260918.2"
|
|
53
53
|
},
|
|
54
54
|
"runtime": {
|
|
55
55
|
"lib/net10.0/Azure.Generator.dll": {
|
|
56
56
|
"assemblyVersion": "1.0.0.0",
|
|
57
|
-
"fileVersion": "1.0.26.
|
|
57
|
+
"fileVersion": "1.0.26.47202"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"Azure.Generator.Management/1.0.0-alpha.20260907.1": {
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"Azure.Core": "1.62.0",
|
|
64
|
-
"Azure.Generator": "1.0.0-alpha.
|
|
64
|
+
"Azure.Generator": "1.0.0-alpha.20260922.2",
|
|
65
65
|
"Azure.ResourceManager": "1.14.0",
|
|
66
66
|
"Humanizer.Core": "3.0.10"
|
|
67
67
|
},
|
|
@@ -478,12 +478,12 @@
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
|
-
"Microsoft.TypeSpec.Generator/1.0.0-alpha.
|
|
481
|
+
"Microsoft.TypeSpec.Generator/1.0.0-alpha.20260918.2": {
|
|
482
482
|
"dependencies": {
|
|
483
483
|
"CommandLineParser": "2.9.1",
|
|
484
484
|
"Microsoft.Build": "17.9.5",
|
|
485
485
|
"Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
|
|
486
|
-
"Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.
|
|
486
|
+
"Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.20260918.2",
|
|
487
487
|
"NuGet.Configuration": "6.14.3",
|
|
488
488
|
"NuGet.Protocol": "6.14.3",
|
|
489
489
|
"NuGet.Versioning": "6.14.3",
|
|
@@ -497,11 +497,11 @@
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
|
-
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.
|
|
500
|
+
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20260918.2": {
|
|
501
501
|
"dependencies": {
|
|
502
502
|
"Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
|
|
503
|
-
"Microsoft.TypeSpec.Generator": "1.0.0-alpha.
|
|
504
|
-
"System.ClientModel": "1.
|
|
503
|
+
"Microsoft.TypeSpec.Generator": "1.0.0-alpha.20260918.2",
|
|
504
|
+
"System.ClientModel": "1.16.0"
|
|
505
505
|
},
|
|
506
506
|
"runtime": {
|
|
507
507
|
"lib/net10.0/Microsoft.TypeSpec.Generator.ClientModel.dll": {
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
|
-
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.
|
|
513
|
+
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20260918.2": {
|
|
514
514
|
"dependencies": {
|
|
515
515
|
"Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
|
|
516
516
|
"System.Memory.Data": "10.0.10"
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
|
-
"System.ClientModel/1.
|
|
597
|
+
"System.ClientModel/1.16.0": {
|
|
598
598
|
"dependencies": {
|
|
599
599
|
"Microsoft.Extensions.Configuration.Abstractions": "10.0.10",
|
|
600
600
|
"Microsoft.Extensions.Hosting.Abstractions": "10.0.10",
|
|
@@ -603,8 +603,8 @@
|
|
|
603
603
|
},
|
|
604
604
|
"runtime": {
|
|
605
605
|
"lib/net10.0/System.ClientModel.dll": {
|
|
606
|
-
"assemblyVersion": "1.
|
|
607
|
-
"fileVersion": "1.
|
|
606
|
+
"assemblyVersion": "1.16.0.0",
|
|
607
|
+
"fileVersion": "1.1600.26.46705"
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
},
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
},
|
|
755
755
|
"libraries": {
|
|
756
|
-
"Azure.Generator.Provisioning/1.0.0-alpha.
|
|
756
|
+
"Azure.Generator.Provisioning/1.0.0-alpha.20261005.1": {
|
|
757
757
|
"type": "project",
|
|
758
758
|
"serviceable": false,
|
|
759
759
|
"sha512": ""
|
|
@@ -772,12 +772,12 @@
|
|
|
772
772
|
"path": "azure.core.expressions.datafactory/1.0.0",
|
|
773
773
|
"hashPath": "azure.core.expressions.datafactory.1.0.0.nupkg.sha512"
|
|
774
774
|
},
|
|
775
|
-
"Azure.Generator/1.0.0-alpha.
|
|
775
|
+
"Azure.Generator/1.0.0-alpha.20260922.2": {
|
|
776
776
|
"type": "package",
|
|
777
777
|
"serviceable": true,
|
|
778
|
-
"sha512": "sha512-
|
|
779
|
-
"path": "azure.generator/1.0.0-alpha.
|
|
780
|
-
"hashPath": "azure.generator.1.0.0-alpha.
|
|
778
|
+
"sha512": "sha512-9RJ2uZ+i1kocVEWUK1i5FGHcW4qZSRHG+26NS5yw13yhOgpS3xuFcQdeKVftoX6mLQYS5K9V9kyD6OqGur99Iw==",
|
|
779
|
+
"path": "azure.generator/1.0.0-alpha.20260922.2",
|
|
780
|
+
"hashPath": "azure.generator.1.0.0-alpha.20260922.2.nupkg.sha512"
|
|
781
781
|
},
|
|
782
782
|
"Azure.Generator.Management/1.0.0-alpha.20260907.1": {
|
|
783
783
|
"type": "package",
|
|
@@ -947,26 +947,26 @@
|
|
|
947
947
|
"path": "microsoft.net.stringtools/17.9.5",
|
|
948
948
|
"hashPath": "microsoft.net.stringtools.17.9.5.nupkg.sha512"
|
|
949
949
|
},
|
|
950
|
-
"Microsoft.TypeSpec.Generator/1.0.0-alpha.
|
|
950
|
+
"Microsoft.TypeSpec.Generator/1.0.0-alpha.20260918.2": {
|
|
951
951
|
"type": "package",
|
|
952
952
|
"serviceable": true,
|
|
953
|
-
"sha512": "sha512-
|
|
954
|
-
"path": "microsoft.typespec.generator/1.0.0-alpha.
|
|
955
|
-
"hashPath": "microsoft.typespec.generator.1.0.0-alpha.
|
|
953
|
+
"sha512": "sha512-mnkaNC9EkERRZnaR0GGAl6+BJpAaF0xqwrUDHr1WDd8rp0xK8tHW9nz0kNCnSkye7yQSfLJXidawwF0ZgpastQ==",
|
|
954
|
+
"path": "microsoft.typespec.generator/1.0.0-alpha.20260918.2",
|
|
955
|
+
"hashPath": "microsoft.typespec.generator.1.0.0-alpha.20260918.2.nupkg.sha512"
|
|
956
956
|
},
|
|
957
|
-
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.
|
|
957
|
+
"Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20260918.2": {
|
|
958
958
|
"type": "package",
|
|
959
959
|
"serviceable": true,
|
|
960
|
-
"sha512": "sha512-
|
|
961
|
-
"path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.
|
|
962
|
-
"hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.
|
|
960
|
+
"sha512": "sha512-ZpRpFWM8mlEcQQ84j7ecJdyejQeQ+D2SuzKiTxCGWAi5wuI4FpSY2Ialfj3TjNDgcXY5YMS8highEK58pM7Uzg==",
|
|
961
|
+
"path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.20260918.2",
|
|
962
|
+
"hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.20260918.2.nupkg.sha512"
|
|
963
963
|
},
|
|
964
|
-
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.
|
|
964
|
+
"Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20260918.2": {
|
|
965
965
|
"type": "package",
|
|
966
966
|
"serviceable": true,
|
|
967
|
-
"sha512": "sha512-
|
|
968
|
-
"path": "microsoft.typespec.generator.input/1.0.0-alpha.
|
|
969
|
-
"hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.
|
|
967
|
+
"sha512": "sha512-dcrhDsn71inUOtmtj8fShi4yjMr6lJBHS0p2mOtNk4nAEaSWsLwrUA7l7ucdC3As8inMxqR0Uf2C2jbdwyEU2Q==",
|
|
968
|
+
"path": "microsoft.typespec.generator.input/1.0.0-alpha.20260918.2",
|
|
969
|
+
"hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.20260918.2.nupkg.sha512"
|
|
970
970
|
},
|
|
971
971
|
"Newtonsoft.Json/13.0.3": {
|
|
972
972
|
"type": "package",
|
|
@@ -1017,12 +1017,12 @@
|
|
|
1017
1017
|
"path": "nuget.versioning/6.14.3",
|
|
1018
1018
|
"hashPath": "nuget.versioning.6.14.3.nupkg.sha512"
|
|
1019
1019
|
},
|
|
1020
|
-
"System.ClientModel/1.
|
|
1020
|
+
"System.ClientModel/1.16.0": {
|
|
1021
1021
|
"type": "package",
|
|
1022
1022
|
"serviceable": true,
|
|
1023
|
-
"sha512": "sha512-
|
|
1024
|
-
"path": "system.clientmodel/1.
|
|
1025
|
-
"hashPath": "system.clientmodel.1.
|
|
1023
|
+
"sha512": "sha512-vLljZON+8lXDUtsPP8uwsPvsBSQaUHhh8NvB+D9TQsXu5n622RLtuLyZAcyIFc98b8ixrwD0AhzUQhtg2NwJnQ==",
|
|
1024
|
+
"path": "system.clientmodel/1.16.0",
|
|
1025
|
+
"hashPath": "system.clientmodel.1.16.0.nupkg.sha512"
|
|
1026
1026
|
},
|
|
1027
1027
|
"System.ComponentModel.Composition/8.0.0": {
|
|
1028
1028
|
"type": "package",
|
|
Binary file
|
|
Binary file
|
|
@@ -762,6 +762,16 @@
|
|
|
762
762
|
False if neither is set.
|
|
763
763
|
</returns>
|
|
764
764
|
</member>
|
|
765
|
+
<member name="M:Azure.Core.AppContextSwitchHelper.GetConfigValue(System.String,System.String,System.Boolean)">
|
|
766
|
+
<summary>
|
|
767
|
+
Determines if either an AppContext switch or its corresponding Environment Variable is set,
|
|
768
|
+
returning <paramref name="defaultValue"/> when neither is set.
|
|
769
|
+
</summary>
|
|
770
|
+
<param name="appContexSwitchName">Name of the AppContext switch.</param>
|
|
771
|
+
<param name="environmentVariableName">Name of the Environment variable.</param>
|
|
772
|
+
<param name="defaultValue">The value to use when neither the switch nor the environment variable is set.</param>
|
|
773
|
+
<returns>The AppContext switch value if set; otherwise the parsed environment variable value; otherwise <paramref name="defaultValue"/>.</returns>
|
|
774
|
+
</member>
|
|
765
775
|
<member name="T:Azure.Core.SequentialDelayStrategy">
|
|
766
776
|
<summary>
|
|
767
777
|
A delay strategy that uses a fixed sequence of delays with no jitter applied. This is used by management LROs.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-typespec/http-client-csharp-provisioning",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20261005.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting Azure provisioning libraries for C#.",
|
|
6
6
|
"readme": "https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-provisioning/README.md",
|