From ffbd034be9f53993267189786089ba41cdd9937f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 18 May 2020 11:37:20 -0700 Subject: [PATCH] Update AutoRest C# version (#12144) --- eng/CodeGeneration.targets | 3 ++- .../src/Shared/AutoRest/ResponseWithHeaders{T,THeaders}.cs | 2 ++ .../src/Shared/AutoRest/ResponseWithHeaders{THeaders}.cs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eng/CodeGeneration.targets b/eng/CodeGeneration.targets index 09aeeb4b63b69..f1f99319c696f 100644 --- a/eng/CodeGeneration.targets +++ b/eng/CodeGeneration.targets @@ -3,7 +3,7 @@ <_AutoRestVersion>https://github.com/Azure/autorest/releases/download/autorest-3.0.6222/autorest-3.0.6222.tgz <_AutoRestCoreVersion>3.0.6282 - <_AutoRestCSharpVersion>https://github.com/Azure/autorest.csharp/releases/download/3.0.0-dev.20200516.1/autorest-csharp-v3-3.0.0-dev.20200516.1.tgz + <_AutoRestCSharpVersion>https://github.com/Azure/autorest.csharp/releases/download/3.0.0-dev.20200518.1/autorest-csharp-v3-3.0.0-dev.20200518.1.tgz <_SupportsCodeGeneration Condition="'$(IsClientLibrary)' == 'true'">true <_DefaultInputName Condition="Exists('$(MSBuildProjectDirectory)/autorest.md')">$(MSBuildProjectDirectory)/autorest.md $(_DefaultInputName) @@ -45,3 +45,4 @@ + diff --git a/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{T,THeaders}.cs b/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{T,THeaders}.cs index 5c2036521e2a5..b8f16f46234c6 100644 --- a/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{T,THeaders}.cs +++ b/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{T,THeaders}.cs @@ -21,5 +21,7 @@ public ResponseWithHeaders(T value, THeaders headers, Response rawResponse) public override T Value { get; } public THeaders Headers { get; } + + public static implicit operator Response(ResponseWithHeaders self) => self.GetRawResponse(); } } diff --git a/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{THeaders}.cs b/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{THeaders}.cs index c761a2ca5bab7..d2c105aea0219 100644 --- a/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{THeaders}.cs +++ b/sdk/core/Azure.Core/src/Shared/AutoRest/ResponseWithHeaders{THeaders}.cs @@ -19,6 +19,6 @@ public ResponseWithHeaders(THeaders headers, Response rawResponse) public THeaders Headers { get; } - public static implicit operator Response(ResponseWithHeaders responseWithHeaders) => responseWithHeaders.GetRawResponse(); + public static implicit operator Response(ResponseWithHeaders self) => self.GetRawResponse(); } }