From cbca490948c3efd5599270fd3b2f2ffa5a8d8bad Mon Sep 17 00:00:00 2001 From: Wei Hu Date: Mon, 11 Nov 2024 11:57:15 +0800 Subject: [PATCH 1/5] Apply RequestContext for PrcessMessage --- eng/Packages.Data.props | 2 +- .../Azure.Generator/src/AzureClientPlugin.cs | 4 ++ .../Azure.Generator/src/AzureOutputLibrary.cs | 20 +++++++ .../Abstraction/HttpMessageProvider.cs | 3 -- .../Abstraction/HttpPipelineProvider.cs | 41 ++++++++++++-- .../RequestContextExtensionsDefinition.cs | 53 +++++++++++++++++++ .../src/Generated/BasicTypeSpecClient.cs | 48 ++++++++--------- .../Internal/ClientPipelineExtensions.cs | 19 +++---- .../Internal/RequestContextExtensions.cs | 25 +++++++++ .../Generated/Models/FloatExtensibleEnum.cs | 1 + .../Models/FloatExtensibleEnumWithIntValue.cs | 1 + .../src/Generated/Models/IntExtensibleEnum.cs | 1 + .../Generated/Models/StringExtensibleEnum.cs | 1 + .../Models/ThingOptionalLiteralFloat.cs | 1 + .../Models/ThingOptionalLiteralInt.cs | 1 + .../Models/ThingOptionalLiteralString.cs | 1 + .../Models/ThingRequiredLiteralFloat.cs | 1 + .../Models/ThingRequiredLiteralInt.cs | 1 + .../Models/ThingRequiredLiteralString.cs | 1 + 19 files changed, 181 insertions(+), 44 deletions(-) create mode 100644 eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureOutputLibrary.cs create mode 100644 eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/RequestContextExtensionsDefinition.cs create mode 100644 eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 1d290bfe11090..3bf8291725d35 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -252,7 +252,7 @@ - +