ข้ามไปยังเนื้อหา

Class RetrySelection

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll

Describes the retry-policy inputs resolved for a Cephalon app.

public sealed class RetrySelection

objectRetrySelection

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

RetrySelection(bool?, int?, string?, int?, int?, bool?)

Section titled “ RetrySelection(bool?, int?, string?, int?, int?, bool?)”

Initializes a new instance of the class.

[JsonConstructor]
public RetrySelection(bool? enabled = null, int? maxAttempts = null, string? backoff = null, int? baseDelayMilliseconds = null, int? maxDelayMilliseconds = null, bool? useJitter = null)

enabled bool?

Whether retry support was explicitly enabled.

maxAttempts int?

The maximum retry attempts requested for the policy.

backoff string?

The requested backoff mode, such as Exponential or Linear.

baseDelayMilliseconds int?

The base delay in milliseconds used by the retry policy.

maxDelayMilliseconds int?

The maximum delay in milliseconds the retry policy may apply.

useJitter bool?

Whether jitter was explicitly requested for retry delays.

Gets the requested backoff mode, such as Exponential or Linear.

public string? Backoff { get; }

string?

Gets the base delay in milliseconds used by the retry policy.

public int? BaseDelayMilliseconds { get; }

int?

Gets an empty retry-selection instance.

public static RetrySelection Empty { get; }

RetrySelection

Gets a value indicating whether retry support was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets a value indicating whether any retry-selection inputs were explicitly supplied.

public bool HasValues { get; }

bool

Gets the maximum retry attempts requested for the policy.

public int? MaxAttempts { get; }

int?

Gets the maximum delay in milliseconds the retry policy may apply.

public int? MaxDelayMilliseconds { get; }

int?

Gets a value indicating whether jitter was explicitly requested for retry delays.

public bool? UseJitter { get; }

bool?