@azure-typespec/http-client-csharp-provisioning 1.0.0-alpha.20260313.4
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/README.md +40 -0
- package/dist/emitter/emitter.d.ts +4 -0
- package/dist/emitter/emitter.d.ts.map +1 -0
- package/dist/emitter/emitter.js +11 -0
- package/dist/emitter/emitter.js.map +1 -0
- package/dist/emitter/index.d.ts +3 -0
- package/dist/emitter/index.d.ts.map +1 -0
- package/dist/emitter/index.js +5 -0
- package/dist/emitter/index.js.map +1 -0
- package/dist/emitter/lib/lib.d.ts +4 -0
- package/dist/emitter/lib/lib.d.ts.map +1 -0
- package/dist/emitter/lib/lib.js +15 -0
- package/dist/emitter/lib/lib.js.map +1 -0
- package/dist/emitter/options.d.ts +6 -0
- package/dist/emitter/options.d.ts.map +1 -0
- package/dist/emitter/options.js +11 -0
- package/dist/emitter/options.js.map +1 -0
- package/dist/generator/Azure.Core.Expressions.DataFactory.dll +0 -0
- package/dist/generator/Azure.Core.dll +0 -0
- package/dist/generator/Azure.Generator.Management.dll +0 -0
- package/dist/generator/Azure.Generator.Provisioning.deps.json +1062 -0
- 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 +1051 -0
- package/dist/generator/Azure.Generator.dll +0 -0
- package/dist/generator/Azure.Provisioning.dll +0 -0
- package/dist/generator/Azure.ResourceManager.dll +0 -0
- package/dist/generator/CommandLine.dll +0 -0
- package/dist/generator/Humanizer.dll +0 -0
- package/dist/generator/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/dist/generator/Microsoft.Build.Framework.dll +0 -0
- package/dist/generator/Microsoft.Build.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.dll +0 -0
- package/dist/generator/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/dist/generator/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/dist/generator/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
- package/dist/generator/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/dist/generator/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
- package/dist/generator/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/dist/generator/Microsoft.Extensions.Options.dll +0 -0
- package/dist/generator/Microsoft.Extensions.Primitives.dll +0 -0
- package/dist/generator/Microsoft.NET.StringTools.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/Microsoft.TypeSpec.Generator.runtimeconfig.json +12 -0
- package/dist/generator/Newtonsoft.Json.dll +0 -0
- package/dist/generator/NuGet.Common.dll +0 -0
- package/dist/generator/NuGet.Configuration.dll +0 -0
- package/dist/generator/NuGet.Frameworks.dll +0 -0
- package/dist/generator/NuGet.Packaging.dll +0 -0
- package/dist/generator/NuGet.Protocol.dll +0 -0
- package/dist/generator/NuGet.Versioning.dll +0 -0
- package/dist/generator/Shared/Core/AppContextSwitchHelper.cs +42 -0
- package/dist/generator/Shared/Core/AsyncLockWithValue.cs +260 -0
- package/dist/generator/Shared/Core/AzureKeyCredentialPolicy.cs +50 -0
- package/dist/generator/Shared/Core/ClientDiagnostics.cs +73 -0
- package/dist/generator/Shared/Core/DiagnosticScope.cs +473 -0
- package/dist/generator/Shared/Core/DiagnosticScopeFactory.cs +104 -0
- package/dist/generator/Shared/Core/FixedDelayWithNoJitterStrategy.cs +26 -0
- package/dist/generator/Shared/Core/ForwardsClientCallsAttribute.cs +39 -0
- package/dist/generator/Shared/Core/HttpMessageSanitizer.cs +198 -0
- package/dist/generator/Shared/Core/IOperationSource.cs +14 -0
- package/dist/generator/Shared/Core/NextLinkOperationImplementation.cs +701 -0
- package/dist/generator/Shared/Core/NoValueResponseOfT.cs +39 -0
- package/dist/generator/Shared/Core/OperationFinalStateVia.cs +16 -0
- package/dist/generator/Shared/Core/OperationInternal.cs +263 -0
- package/dist/generator/Shared/Core/OperationInternalBase.cs +234 -0
- package/dist/generator/Shared/Core/OperationInternalOfT.cs +431 -0
- package/dist/generator/Shared/Core/OperationPoller.cs +114 -0
- package/dist/generator/Shared/Core/RawRequestUriBuilder.cs +229 -0
- package/dist/generator/Shared/Core/RequestHeaderExtensions.cs +132 -0
- package/dist/generator/Shared/Core/SequentialDelayStrategy.cs +38 -0
- package/dist/generator/Shared/Core/TaskExtensions.cs +313 -0
- package/dist/generator/Shared/Core/TypeFormatters.cs +159 -0
- package/dist/generator/Shared/Core/VoidValue.cs +10 -0
- package/dist/generator/System.ClientModel.dll +0 -0
- package/dist/generator/System.ComponentModel.Composition.dll +0 -0
- package/dist/generator/System.Composition.AttributedModel.dll +0 -0
- package/dist/generator/System.Composition.Convention.dll +0 -0
- package/dist/generator/System.Composition.Hosting.dll +0 -0
- package/dist/generator/System.Composition.Runtime.dll +0 -0
- package/dist/generator/System.Composition.TypedParts.dll +0 -0
- package/dist/generator/System.Configuration.ConfigurationManager.dll +0 -0
- package/dist/generator/System.Diagnostics.EventLog.dll +0 -0
- package/dist/generator/System.Memory.Data.dll +0 -0
- package/dist/generator/System.Reflection.MetadataLoadContext.dll +0 -0
- package/dist/generator/System.Security.Cryptography.Pkcs.dll +0 -0
- package/dist/generator/System.Security.Cryptography.ProtectedData.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/Azure.Core.Expressions.DataFactory.dll +0 -0
- package/dist/generator/net10.0/Azure.Core.dll +0 -0
- package/dist/generator/net10.0/Azure.Generator.Management.dll +0 -0
- package/dist/generator/net10.0/Azure.Generator.Provisioning.deps.json +1062 -0
- 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 +1051 -0
- package/dist/generator/net10.0/Azure.Generator.dll +0 -0
- package/dist/generator/net10.0/Azure.Provisioning.dll +0 -0
- package/dist/generator/net10.0/Azure.ResourceManager.dll +0 -0
- package/dist/generator/net10.0/CommandLine.dll +0 -0
- package/dist/generator/net10.0/Humanizer.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Build.Framework.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Build.dll +0 -0
- package/dist/generator/net10.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
- package/dist/generator/net10.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/dist/generator/net10.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
- package/dist/generator/net10.0/Microsoft.CodeAnalysis.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.Options.dll +0 -0
- package/dist/generator/net10.0/Microsoft.Extensions.Primitives.dll +0 -0
- package/dist/generator/net10.0/Microsoft.NET.StringTools.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/Newtonsoft.Json.dll +0 -0
- package/dist/generator/net10.0/NuGet.Common.dll +0 -0
- package/dist/generator/net10.0/NuGet.Configuration.dll +0 -0
- package/dist/generator/net10.0/NuGet.Frameworks.dll +0 -0
- package/dist/generator/net10.0/NuGet.Packaging.dll +0 -0
- package/dist/generator/net10.0/NuGet.Protocol.dll +0 -0
- package/dist/generator/net10.0/NuGet.Versioning.dll +0 -0
- package/dist/generator/net10.0/Shared/Core/AppContextSwitchHelper.cs +42 -0
- package/dist/generator/net10.0/Shared/Core/AsyncLockWithValue.cs +260 -0
- package/dist/generator/net10.0/Shared/Core/AzureKeyCredentialPolicy.cs +50 -0
- package/dist/generator/net10.0/Shared/Core/ClientDiagnostics.cs +73 -0
- package/dist/generator/net10.0/Shared/Core/DiagnosticScope.cs +473 -0
- package/dist/generator/net10.0/Shared/Core/DiagnosticScopeFactory.cs +104 -0
- package/dist/generator/net10.0/Shared/Core/FixedDelayWithNoJitterStrategy.cs +26 -0
- package/dist/generator/net10.0/Shared/Core/ForwardsClientCallsAttribute.cs +39 -0
- package/dist/generator/net10.0/Shared/Core/HttpMessageSanitizer.cs +198 -0
- package/dist/generator/net10.0/Shared/Core/IOperationSource.cs +14 -0
- package/dist/generator/net10.0/Shared/Core/NextLinkOperationImplementation.cs +701 -0
- package/dist/generator/net10.0/Shared/Core/NoValueResponseOfT.cs +39 -0
- package/dist/generator/net10.0/Shared/Core/OperationFinalStateVia.cs +16 -0
- package/dist/generator/net10.0/Shared/Core/OperationInternal.cs +263 -0
- package/dist/generator/net10.0/Shared/Core/OperationInternalBase.cs +234 -0
- package/dist/generator/net10.0/Shared/Core/OperationInternalOfT.cs +431 -0
- package/dist/generator/net10.0/Shared/Core/OperationPoller.cs +114 -0
- package/dist/generator/net10.0/Shared/Core/RawRequestUriBuilder.cs +229 -0
- package/dist/generator/net10.0/Shared/Core/RequestHeaderExtensions.cs +132 -0
- package/dist/generator/net10.0/Shared/Core/SequentialDelayStrategy.cs +38 -0
- package/dist/generator/net10.0/Shared/Core/TaskExtensions.cs +313 -0
- package/dist/generator/net10.0/Shared/Core/TypeFormatters.cs +159 -0
- package/dist/generator/net10.0/Shared/Core/VoidValue.cs +10 -0
- package/dist/generator/net10.0/System.ClientModel.dll +0 -0
- package/dist/generator/net10.0/System.ComponentModel.Composition.dll +0 -0
- package/dist/generator/net10.0/System.Composition.AttributedModel.dll +0 -0
- package/dist/generator/net10.0/System.Composition.Convention.dll +0 -0
- package/dist/generator/net10.0/System.Composition.Hosting.dll +0 -0
- package/dist/generator/net10.0/System.Composition.Runtime.dll +0 -0
- package/dist/generator/net10.0/System.Composition.TypedParts.dll +0 -0
- package/dist/generator/net10.0/System.Configuration.ConfigurationManager.dll +0 -0
- package/dist/generator/net10.0/System.Diagnostics.EventLog.dll +0 -0
- package/dist/generator/net10.0/System.Memory.Data.dll +0 -0
- package/dist/generator/net10.0/System.Reflection.MetadataLoadContext.dll +0 -0
- package/dist/generator/net10.0/System.Security.Cryptography.Pkcs.dll +0 -0
- package/dist/generator/net10.0/System.Security.Cryptography.ProtectedData.dll +0 -0
- package/dist/generator/net10.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/runtimes/win/lib/net6.0/System.Security.Cryptography.Pkcs.dll +0 -0
- package/dist/generator/net10.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- package/dist/generator/net10.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/dist/generator/net10.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/net10.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/runtimes/win/lib/net6.0/System.Security.Cryptography.Pkcs.dll +0 -0
- package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/package.json +64 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
#nullable enable
|
|
5
|
+
|
|
6
|
+
using System;
|
|
7
|
+
using System.Collections.Generic;
|
|
8
|
+
using System.Globalization;
|
|
9
|
+
using System.Linq;
|
|
10
|
+
|
|
11
|
+
namespace Azure.Core
|
|
12
|
+
{
|
|
13
|
+
internal class RawRequestUriBuilder : RequestUriBuilder
|
|
14
|
+
{
|
|
15
|
+
private const string SchemeSeparator = "://";
|
|
16
|
+
private const char HostSeparator = '/';
|
|
17
|
+
private const char PortSeparator = ':';
|
|
18
|
+
private static readonly char[] HostOrPort = { HostSeparator, PortSeparator };
|
|
19
|
+
private const char QueryBeginSeparator = '?';
|
|
20
|
+
private const char QueryContinueSeparator = '&';
|
|
21
|
+
private const char QueryValueSeparator = '=';
|
|
22
|
+
|
|
23
|
+
private RawWritingPosition? _position;
|
|
24
|
+
|
|
25
|
+
private static void GetQueryParts(ReadOnlySpan<char> queryUnparsed, out ReadOnlySpan<char> name, out ReadOnlySpan<char> value)
|
|
26
|
+
{
|
|
27
|
+
int separatorIndex = queryUnparsed.IndexOf(QueryValueSeparator);
|
|
28
|
+
if (separatorIndex == -1)
|
|
29
|
+
{
|
|
30
|
+
name = queryUnparsed;
|
|
31
|
+
value = ReadOnlySpan<char>.Empty;
|
|
32
|
+
}
|
|
33
|
+
else
|
|
34
|
+
{
|
|
35
|
+
name = queryUnparsed.Slice(0, separatorIndex);
|
|
36
|
+
value = queryUnparsed.Slice(separatorIndex + 1);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public void AppendRaw(string value, bool escape)
|
|
41
|
+
{
|
|
42
|
+
AppendRaw(value.AsSpan(), escape);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
private void AppendRaw(ReadOnlySpan<char> value, bool escape)
|
|
46
|
+
{
|
|
47
|
+
if (_position == null)
|
|
48
|
+
{
|
|
49
|
+
if (HasQuery)
|
|
50
|
+
{
|
|
51
|
+
_position = RawWritingPosition.Query;
|
|
52
|
+
}
|
|
53
|
+
else if (HasPath)
|
|
54
|
+
{
|
|
55
|
+
_position = RawWritingPosition.Path;
|
|
56
|
+
}
|
|
57
|
+
else if (!string.IsNullOrEmpty(Host))
|
|
58
|
+
{
|
|
59
|
+
_position = RawWritingPosition.Host;
|
|
60
|
+
}
|
|
61
|
+
else
|
|
62
|
+
{
|
|
63
|
+
_position = RawWritingPosition.Scheme;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
while (!value.IsEmpty)
|
|
68
|
+
{
|
|
69
|
+
if (_position == RawWritingPosition.Scheme)
|
|
70
|
+
{
|
|
71
|
+
int separator = value.IndexOf(SchemeSeparator.AsSpan(), StringComparison.InvariantCultureIgnoreCase);
|
|
72
|
+
if (separator == -1)
|
|
73
|
+
{
|
|
74
|
+
Scheme += value.ToString();
|
|
75
|
+
value = ReadOnlySpan<char>.Empty;
|
|
76
|
+
}
|
|
77
|
+
else
|
|
78
|
+
{
|
|
79
|
+
Scheme += value.Slice(0, separator).ToString();
|
|
80
|
+
// TODO: Find a better way to map schemes to default ports
|
|
81
|
+
Port = string.Equals(Scheme, "https", StringComparison.OrdinalIgnoreCase) ? 443 : 80;
|
|
82
|
+
value = value.Slice(separator + SchemeSeparator.Length);
|
|
83
|
+
_position = RawWritingPosition.Host;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else if (_position == RawWritingPosition.Host)
|
|
87
|
+
{
|
|
88
|
+
int separator = value.IndexOfAny(HostOrPort);
|
|
89
|
+
if (separator == -1)
|
|
90
|
+
{
|
|
91
|
+
if (!HasPath)
|
|
92
|
+
{
|
|
93
|
+
Host += value.ToString();
|
|
94
|
+
value = ReadOnlySpan<char>.Empty;
|
|
95
|
+
}
|
|
96
|
+
else
|
|
97
|
+
{
|
|
98
|
+
// All Host information must be written before Path information
|
|
99
|
+
// If Path already has information, we transition to writing Path
|
|
100
|
+
_position = RawWritingPosition.Path;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else
|
|
104
|
+
{
|
|
105
|
+
Host += value.Slice(0, separator).ToString();
|
|
106
|
+
_position = value[separator] == HostSeparator ? RawWritingPosition.Path : RawWritingPosition.Port;
|
|
107
|
+
value = value.Slice(separator + 1);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else if (_position == RawWritingPosition.Port)
|
|
111
|
+
{
|
|
112
|
+
int separator = value.IndexOf(HostSeparator);
|
|
113
|
+
if (separator == -1)
|
|
114
|
+
{
|
|
115
|
+
#if NETCOREAPP2_1_OR_GREATER
|
|
116
|
+
Port = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture);
|
|
117
|
+
#else
|
|
118
|
+
Port = int.Parse(value.ToString(), CultureInfo.InvariantCulture);
|
|
119
|
+
#endif
|
|
120
|
+
value = ReadOnlySpan<char>.Empty;
|
|
121
|
+
}
|
|
122
|
+
else
|
|
123
|
+
{
|
|
124
|
+
#if NETCOREAPP2_1_OR_GREATER
|
|
125
|
+
Port = int.Parse(value.Slice(0, separator), NumberStyles.Integer, CultureInfo.InvariantCulture);
|
|
126
|
+
#else
|
|
127
|
+
Port = int.Parse(value.Slice(0, separator).ToString(), CultureInfo.InvariantCulture);
|
|
128
|
+
#endif
|
|
129
|
+
value = value.Slice(separator + 1);
|
|
130
|
+
}
|
|
131
|
+
// Port cannot be split (like Host), so always transition to Path when Port is parsed
|
|
132
|
+
_position = RawWritingPosition.Path;
|
|
133
|
+
}
|
|
134
|
+
else if (_position == RawWritingPosition.Path)
|
|
135
|
+
{
|
|
136
|
+
int separator = value.IndexOf(QueryBeginSeparator);
|
|
137
|
+
if (separator == -1)
|
|
138
|
+
{
|
|
139
|
+
AppendPath(value, escape);
|
|
140
|
+
value = ReadOnlySpan<char>.Empty;
|
|
141
|
+
}
|
|
142
|
+
else
|
|
143
|
+
{
|
|
144
|
+
AppendPath(value.Slice(0, separator), escape);
|
|
145
|
+
value = value.Slice(separator + 1);
|
|
146
|
+
_position = RawWritingPosition.Query;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
else if (_position == RawWritingPosition.Query)
|
|
150
|
+
{
|
|
151
|
+
int separator = value.IndexOf(QueryContinueSeparator);
|
|
152
|
+
if (separator == 0)
|
|
153
|
+
{
|
|
154
|
+
value = value.Slice(1);
|
|
155
|
+
}
|
|
156
|
+
else if (separator == -1)
|
|
157
|
+
{
|
|
158
|
+
GetQueryParts(value, out var queryName, out var queryValue);
|
|
159
|
+
AppendQuery(queryName, queryValue, escape);
|
|
160
|
+
value = ReadOnlySpan<char>.Empty;
|
|
161
|
+
}
|
|
162
|
+
else
|
|
163
|
+
{
|
|
164
|
+
GetQueryParts(value.Slice(0, separator), out var queryName, out var queryValue);
|
|
165
|
+
AppendQuery(queryName, queryValue, escape);
|
|
166
|
+
value = value.Slice(separator + 1);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
private enum RawWritingPosition
|
|
173
|
+
{
|
|
174
|
+
Scheme,
|
|
175
|
+
Host,
|
|
176
|
+
Port,
|
|
177
|
+
Path,
|
|
178
|
+
Query
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
public void AppendRawNextLink(string nextLink, bool escape)
|
|
182
|
+
{
|
|
183
|
+
// If it is an absolute link, we use the nextLink as the entire url
|
|
184
|
+
if (nextLink.StartsWith(Uri.UriSchemeHttp, StringComparison.InvariantCultureIgnoreCase))
|
|
185
|
+
{
|
|
186
|
+
Reset(new Uri(nextLink));
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
AppendRaw(nextLink, escape);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
public void AppendQuery(string name, bool value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
194
|
+
|
|
195
|
+
public void AppendQuery(string name, float value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
196
|
+
|
|
197
|
+
public void AppendQuery(string name, DateTimeOffset value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
|
|
198
|
+
|
|
199
|
+
public void AppendQuery(string name, TimeSpan value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
|
|
200
|
+
|
|
201
|
+
public void AppendQuery(string name, double value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
202
|
+
|
|
203
|
+
public void AppendQuery(string name, decimal value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
204
|
+
|
|
205
|
+
public void AppendQuery(string name, int value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
206
|
+
|
|
207
|
+
public void AppendQuery(string name, long value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
208
|
+
|
|
209
|
+
public void AppendQuery(string name, TimeSpan value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
210
|
+
|
|
211
|
+
public void AppendQuery(string name, byte[] value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
|
|
212
|
+
|
|
213
|
+
public void AppendQuery(string name, Guid value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
|
|
214
|
+
|
|
215
|
+
public void AppendQueryDelimited<T>(string name, IEnumerable<T> value, string delimiter, string? format = null, bool escape = true)
|
|
216
|
+
{
|
|
217
|
+
delimiter ??= ",";
|
|
218
|
+
IEnumerable<string> stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
|
|
219
|
+
AppendQuery(name, string.Join(delimiter, stringValues), escape);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public void AppendPathDelimited<T>(IEnumerable<T> value, string delimiter, string? format = null, bool escape = true)
|
|
223
|
+
{
|
|
224
|
+
delimiter ??= ",";
|
|
225
|
+
IEnumerable<string> stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
|
|
226
|
+
AppendPath(string.Join(delimiter, stringValues), escape);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
#nullable enable
|
|
5
|
+
|
|
6
|
+
using System;
|
|
7
|
+
using System.Collections.Generic;
|
|
8
|
+
using System.Globalization;
|
|
9
|
+
using System.Linq;
|
|
10
|
+
using System.Xml;
|
|
11
|
+
|
|
12
|
+
namespace Azure.Core
|
|
13
|
+
{
|
|
14
|
+
internal static class RequestHeaderExtensions
|
|
15
|
+
{
|
|
16
|
+
public static void Add(this RequestHeaders headers, string name, bool value)
|
|
17
|
+
{
|
|
18
|
+
headers.Add(name, TypeFormatters.ToString(value));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public static void Add(this RequestHeaders headers, string name, float value)
|
|
22
|
+
{
|
|
23
|
+
headers.Add(name, value.ToString(TypeFormatters.DefaultNumberFormat, CultureInfo.InvariantCulture));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public static void Add(this RequestHeaders headers, string name, double value)
|
|
27
|
+
{
|
|
28
|
+
headers.Add(name, value.ToString(TypeFormatters.DefaultNumberFormat, CultureInfo.InvariantCulture));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public static void Add(this RequestHeaders headers, string name, int value)
|
|
32
|
+
{
|
|
33
|
+
headers.Add(name, value.ToString(TypeFormatters.DefaultNumberFormat, CultureInfo.InvariantCulture));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public static void Add(this RequestHeaders headers, string name, long value)
|
|
37
|
+
{
|
|
38
|
+
headers.Add(name, value.ToString(TypeFormatters.DefaultNumberFormat, CultureInfo.InvariantCulture));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public static void Add(this RequestHeaders headers, string name, DateTimeOffset value, string format)
|
|
42
|
+
{
|
|
43
|
+
headers.Add(name, TypeFormatters.ToString(value, format));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static void Add(this RequestHeaders headers, string name, TimeSpan value, string format)
|
|
47
|
+
{
|
|
48
|
+
headers.Add(name, TypeFormatters.ToString(value, format));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public static void Add(this RequestHeaders headers, string name, Guid value)
|
|
52
|
+
{
|
|
53
|
+
headers.Add(name, value.ToString());
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public static void Add(this RequestHeaders headers, string name, byte[] value, string format)
|
|
57
|
+
{
|
|
58
|
+
headers.Add(name, TypeFormatters.ToString(value, format));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public static void Add(this RequestHeaders headers, string name, BinaryData value, string format)
|
|
62
|
+
{
|
|
63
|
+
headers.Add(name, TypeFormatters.ToString(value.ToArray(), format));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public static void Add(this RequestHeaders headers, string prefix, IDictionary<string, string> headersToAdd)
|
|
67
|
+
{
|
|
68
|
+
foreach (var header in headersToAdd)
|
|
69
|
+
{
|
|
70
|
+
headers.Add(prefix + header.Key, header.Value);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public static void Add(this RequestHeaders headers, string name, ETag value)
|
|
75
|
+
{
|
|
76
|
+
headers.Add(name, value.ToString("H"));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public static void Add(this RequestHeaders headers, MatchConditions conditions)
|
|
80
|
+
{
|
|
81
|
+
if (conditions.IfMatch != null)
|
|
82
|
+
{
|
|
83
|
+
headers.Add("If-Match", conditions.IfMatch.Value);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (conditions.IfNoneMatch != null)
|
|
87
|
+
{
|
|
88
|
+
headers.Add("If-None-Match", conditions.IfNoneMatch.Value);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public static void Add(this RequestHeaders headers, RequestConditions conditions, string format)
|
|
93
|
+
{
|
|
94
|
+
if (conditions.IfMatch != null)
|
|
95
|
+
{
|
|
96
|
+
headers.Add("If-Match", conditions.IfMatch.Value);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (conditions.IfNoneMatch != null)
|
|
100
|
+
{
|
|
101
|
+
headers.Add("If-None-Match", conditions.IfNoneMatch.Value);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (conditions.IfModifiedSince != null)
|
|
105
|
+
{
|
|
106
|
+
headers.Add("If-Modified-Since", conditions.IfModifiedSince.Value, format);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (conditions.IfUnmodifiedSince != null)
|
|
110
|
+
{
|
|
111
|
+
headers.Add("If-Unmodified-Since", conditions.IfUnmodifiedSince.Value, format);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public static void AddDelimited<T>(this RequestHeaders headers, string name, IEnumerable<T> value, string delimiter)
|
|
116
|
+
{
|
|
117
|
+
headers.Add(name, string.Join(delimiter, value));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public static void AddDelimited<T>(this RequestHeaders headers, string name, IEnumerable<T> value, string delimiter, string format)
|
|
121
|
+
{
|
|
122
|
+
var stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
|
|
123
|
+
headers.Add(name, string.Join(delimiter, stringValues));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
public static void SetDelimited<T>(this RequestHeaders headers, string name, IEnumerable<T> value, string delimiter, string? format = default)
|
|
127
|
+
{
|
|
128
|
+
IEnumerable<string> stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
|
|
129
|
+
headers.SetValue(name, string.Join(delimiter, stringValues));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
using System;
|
|
5
|
+
|
|
6
|
+
#nullable enable
|
|
7
|
+
|
|
8
|
+
namespace Azure.Core
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
/// A delay strategy that uses a fixed sequence of delays with no jitter applied. This is used by management LROs.
|
|
12
|
+
/// </summary>
|
|
13
|
+
internal class SequentialDelayStrategy : DelayStrategy
|
|
14
|
+
{
|
|
15
|
+
private static readonly TimeSpan[] _pollingSequence = new TimeSpan[]
|
|
16
|
+
{
|
|
17
|
+
TimeSpan.FromSeconds(1),
|
|
18
|
+
TimeSpan.FromSeconds(1),
|
|
19
|
+
TimeSpan.FromSeconds(1),
|
|
20
|
+
TimeSpan.FromSeconds(2),
|
|
21
|
+
TimeSpan.FromSeconds(4),
|
|
22
|
+
TimeSpan.FromSeconds(8),
|
|
23
|
+
TimeSpan.FromSeconds(16),
|
|
24
|
+
TimeSpan.FromSeconds(32)
|
|
25
|
+
};
|
|
26
|
+
private static readonly TimeSpan _maxDelay = _pollingSequence[_pollingSequence.Length - 1];
|
|
27
|
+
|
|
28
|
+
public SequentialDelayStrategy() : base(_maxDelay, 0)
|
|
29
|
+
{
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
protected override TimeSpan GetNextDelayCore(Response? response, int retryNumber)
|
|
33
|
+
{
|
|
34
|
+
int index = retryNumber - 1;
|
|
35
|
+
return index >= _pollingSequence.Length ? _maxDelay : _pollingSequence[index];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|