Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d3b78e6
Adapt latest azure.core
live1206 Feb 1, 2024
3dc6406
update
live1206 Feb 1, 2024
c6a24b1
update
live1206 Feb 2, 2024
463b4a1
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 4, 2024
809ede7
update
live1206 Feb 4, 2024
afdd3a8
Merge branch 'rehydration-token' of https://github.com/live1206/autor…
live1206 Feb 4, 2024
4f6a546
test
live1206 Feb 4, 2024
9684285
fix test
live1206 Feb 4, 2024
0c7acd5
fix
live1206 Feb 4, 2024
bb5cfce
fix
live1206 Feb 4, 2024
1991ac8
fix
live1206 Feb 4, 2024
e7aaabf
update
live1206 Feb 5, 2024
5c16ad5
regen
live1206 Feb 5, 2024
ce1bc82
update
live1206 Feb 5, 2024
f9f6353
update
live1206 Feb 5, 2024
287ab48
update
live1206 Feb 6, 2024
ecc5e4a
regen
live1206 Feb 7, 2024
0f6a0b4
update
live1206 Feb 18, 2024
3652ac0
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 18, 2024
b0a3194
test
live1206 Feb 18, 2024
308ebb7
regen
live1206 Feb 18, 2024
b4a8e26
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 18, 2024
111eb15
update
live1206 Feb 18, 2024
9ef1def
update
live1206 Feb 19, 2024
d5b8794
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 23, 2024
2de341a
merge
live1206 Feb 23, 2024
d1bf74c
update
live1206 Feb 23, 2024
e6bb078
update shared core
live1206 Feb 23, 2024
abe1217
new line
live1206 Feb 23, 2024
33d6a61
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 27, 2024
c64aa79
update Azure.Core version
live1206 Feb 27, 2024
1b7f859
update
live1206 Feb 27, 2024
c5a25c0
update Azure.Core shared
live1206 Feb 27, 2024
2cc6fce
update
live1206 Feb 27, 2024
b112d89
update shared code
live1206 Feb 27, 2024
c40a3f2
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 27, 2024
005d6c1
Fix serialziation implementation for Resource
live1206 Feb 28, 2024
256e4a3
update
live1206 Feb 28, 2024
8c6fb24
Merge branch 'feature/v3' into rehydration-token
live1206 Feb 28, 2024
1705feb
update
live1206 Feb 29, 2024
fc6b7b6
Merge branch 'rehydration-token' of https://github.com/live1206/autor…
live1206 Feb 29, 2024
80dc6e0
updated shared code
live1206 Mar 1, 2024
5418f69
update shared code
live1206 Mar 1, 2024
64c7bdc
Merge branch 'feature/v3' into rehydration-token
live1206 Mar 1, 2024
54539b2
workaround for test failure
live1206 Mar 1, 2024
4fec68a
update shared code
live1206 Mar 1, 2024
21b4dbb
Merge remote-tracking branch 'origin/feature/v3' into rehydration-token
live1206 Mar 1, 2024
10ba432
update
live1206 Mar 1, 2024
dcd7805
workaround for test failure
live1206 Mar 1, 2024
6bb8619
Merge branch 'feature/v3' into rehydration-token
live1206 Mar 6, 2024
3e803c4
rename
live1206 Mar 6, 2024
3a382d9
add implementation for operation id
live1206 Mar 8, 2024
c93c6b8
Merge branch 'feature/v3' into rehydration-token
live1206 Mar 8, 2024
4b9f898
Merge branch 'feature/v3' into rehydration-token
live1206 Mar 8, 2024
b3978be
Merge branch 'rehydration-token' of https://github.com/live1206/autor…
live1206 Mar 8, 2024
e2f13d6
update
live1206 Mar 8, 2024
3cc8d52
Merge branch 'feature/v3' into rehydration-token
live1206 Mar 15, 2024
3bc8d6d
merge
live1206 Mar 15, 2024
349c10c
update shared code
live1206 Mar 15, 2024
3d575dd
Merge branch 'feature/v3' into rehydration-token
live1206 Apr 7, 2024
59f2cfc
updated shared core
live1206 Apr 7, 2024
5612c89
Merge branch 'feature/v3' into rehydration-token
live1206 Apr 7, 2024
7f14f61
reset
live1206 Apr 7, 2024
6f9ffa0
update
live1206 Apr 7, 2024
577adfa
regen
live1206 Apr 7, 2024
fb22e18
Merge branch 'feature/v3' into rehydration-token
live1206 Apr 20, 2024
c6957d8
Update to latest Azure.Core
live1206 Apr 20, 2024
cd383dd
update
live1206 Apr 22, 2024
6389872
Regen tests
live1206 Apr 22, 2024
d117cc9
Merge branch 'feature/v3' into rehydration-token
live1206 Apr 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<ItemGroup>
<PackageReference Update="NUnit" Version="3.13.2" />
<PackageReference Update="System.ClientModel" Version="1.1.0-beta.2" />
<PackageReference Update="Azure.Core" Version="1.38.0" />
<PackageReference Update="Azure.Core" Version="1.39.0" />
<PackageReference Update="Azure.Core.Experimental" Version="0.1.0-preview.18" />
<PackageReference Update="Azure.ResourceManager" Version="1.11.0" />
<PackageReference Update="Azure.Core.Expressions.DataFactory" Version="1.0.0" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#nullable disable

using System;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Azure;
Expand All @@ -20,28 +22,52 @@ internal class SampleArmOperation : ArmOperation
#pragma warning restore SA1649 // File name should match first type name
{
private readonly OperationInternal _operation;
private readonly RehydrationToken? _completeRehydrationToken;
private readonly NextLinkOperationImplementation _nextLinkOperation;
private readonly string _operationId;

/// <summary> Initializes a new instance of SampleArmOperation for mocking. </summary>
protected SampleArmOperation()
{
}

internal SampleArmOperation(Response response)
internal SampleArmOperation(Response response, RehydrationToken? rehydrationToken = null)
{
_operation = OperationInternal.Succeeded(response);
_completeRehydrationToken = rehydrationToken;
_operationId = GetOperationId(rehydrationToken);
}

internal SampleArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null)
{
var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue);
if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationValue)
{
_nextLinkOperation = nextLinkOperationValue;
_operationId = _nextLinkOperation.OperationId;
}
else
{
_completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia);
_operationId = GetOperationId(_completeRehydrationToken);
}
_operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SampleArmOperation", fallbackStrategy: new SequentialDelayStrategy());
}

private string GetOperationId(RehydrationToken? rehydrationToken)
{
if (rehydrationToken is null)
{
return null;
}
var lroDetails = ModelReaderWriter.Write(rehydrationToken, ModelReaderWriterOptions.Json).ToObjectFromJson<Dictionary<string, string>>();
return lroDetails["id"];
}
/// <inheritdoc />
public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet;

/// <inheritdoc />
#pragma warning disable CA1822
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public override string Id => throw new NotImplementedException();
#pragma warning restore CA1822
public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken;

/// <inheritdoc />
public override bool HasCompleted => _operation.HasCompleted;
Expand Down
Loading