Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion sdk/core/System.ClientModel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Breaking Changes

- Change `HttpClientPipelineTransport.Shared` from a field to a property.
- Changed `HttpClientPipelineTransport.Shared` and `ClientRetryPolicy.Default` from static readonly fields to static properties.

### Bugs Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public virtual void Freeze() { }
}
public partial class ClientRetryPolicy : System.ClientModel.Primitives.PipelinePolicy
{
public static readonly System.ClientModel.Primitives.ClientRetryPolicy Default;
public ClientRetryPolicy(int maxRetries = 3) { }
public static System.ClientModel.Primitives.ClientRetryPolicy Default { get { throw null; } }
protected virtual System.TimeSpan GetNextDelay(System.ClientModel.Primitives.PipelineMessage message, int tryCount) { throw null; }
protected virtual void OnRequestSent(System.ClientModel.Primitives.PipelineMessage message) { }
protected virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(System.ClientModel.Primitives.PipelineMessage message) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public virtual void Freeze() { }
}
public partial class ClientRetryPolicy : System.ClientModel.Primitives.PipelinePolicy
{
public static readonly System.ClientModel.Primitives.ClientRetryPolicy Default;
public ClientRetryPolicy(int maxRetries = 3) { }
public static System.ClientModel.Primitives.ClientRetryPolicy Default { get { throw null; } }
protected virtual System.TimeSpan GetNextDelay(System.ClientModel.Primitives.PipelineMessage message, int tryCount) { throw null; }
protected virtual void OnRequestSent(System.ClientModel.Primitives.PipelineMessage message) { }
protected virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(System.ClientModel.Primitives.PipelineMessage message) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ namespace System.ClientModel.Primitives;

public class ClientRetryPolicy : PipelinePolicy
{
public static readonly ClientRetryPolicy Default = new();
private static readonly ClientRetryPolicy _default = new();
public static ClientRetryPolicy Default => _default;

private const int DefaultMaxRetries = 3;
private static readonly TimeSpan DefaultInitialDelay = TimeSpan.FromSeconds(0.8);
Expand Down