Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<Compile Include="$(AzureCoreSharedSources)ChangeTrackingList.cs" LinkBase="Shared/Core" />
<Compile Include="$(AzureCoreSharedSources)DiagnosticScope.cs" LinkBase="Shared/Core" />
<Compile Include="$(AzureCoreSharedSources)DiagnosticScopeFactory.cs" LinkBase="Shared/Core" />
<Compile Include="$(AzureCoreSharedSources)ErrorResponse.cs" LinkBase="Shared/Core" />
<Compile Include="$(AzureCoreSharedSources)FixedDelayWithNoJitterStrategy.cs" LinkBase="Shared/Core" />
<Compile Include="$(AzureCoreSharedSources)FormUrlEncodedContent.cs" LinkBase="Shared/Core" />
<Compile Include="$(AzureCoreSharedSources)ForwardsClientCallsAttribute.cs" LinkBase="Shared/Core" />
Expand Down
5 changes: 2 additions & 3 deletions eng/DownloadSharedSource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Write-Host "git sparse-checkout init"
git sparse-checkout init
Write-Host "git sparse-checkout set --no-cone $azCoreSharedPath $armCoreSharedPath"
git sparse-checkout set --no-cone $azCoreSharedPath $armCoreSharedPath
Write-Host "git checkout"
git checkout
Write-Host "git checkout users/annelo/core-reshuffle-2"
Comment thread
annelo-msft marked this conversation as resolved.
Outdated
git checkout users/annelo/core-reshuffle-2
Pop-Location

function CopyAll([string[]]$files, [string]$source, [string]$destination)
Expand All @@ -39,7 +39,6 @@ $files = @('AsyncLockWithValue.cs', 'ClientDiagnostics.cs', 'DiagnosticScope.cs'
'ForwardsClientCallsAttribute.cs', 'AsyncLockWithValue.cs', 'VoidValue.cs', 'AzureResourceProviderNamespaceAttribute.cs',
'ChangeTrackingDictionary.cs',
'ChangeTrackingList.cs',
'ErrorResponse.cs',
'FormUrlEncodedContent.cs',
'HttpPipelineExtensions.cs',
'IOperationSource.cs',
Expand Down
23 changes: 0 additions & 23 deletions src/assets/Azure.Core.Shared/ErrorResponse.cs

This file was deleted.

16 changes: 16 additions & 0 deletions src/assets/Azure.Core.Shared/HttpPipelineExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,21 @@ private static (CancellationToken CancellationToken, ErrorOptions ErrorOptions)

return (requestContext.CancellationToken, requestContext.ErrorOptions);
}

internal class ErrorResponse<T> : Response<T>
{
private readonly Response _response;
private readonly RequestFailedException _exception;

public ErrorResponse(Response response, RequestFailedException exception)
{
_response = response;
_exception = exception;
}

public override T Value { get => throw _exception; }

public override Response GetRawResponse() => _response;
}
}
}