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

Class CircuitBreakerSettings

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

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven circuit-breaker settings for a Cephalon app.

public sealed class CircuitBreakerSettings

objectCircuitBreakerSettings

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

CircuitBreakerSettings(bool?, decimal?, int?, int?, int?)

Section titled “ CircuitBreakerSettings(bool?, decimal?, int?, int?, int?)”

Initializes a new instance of the class.

public CircuitBreakerSettings(bool? enabled = null, decimal? failureRatio = null, int? minimumThroughput = null, int? samplingDurationSeconds = null, int? breakDurationSeconds = null)

enabled bool?

Whether circuit-breaker support was explicitly enabled.

failureRatio decimal?

The failure ratio threshold requested for opening the breaker.

minimumThroughput int?

The minimum throughput required before the breaker evaluates failures.

samplingDurationSeconds int?

The sampling duration in seconds used by the breaker.

breakDurationSeconds int?

The break duration in seconds requested for the open state.

Gets the break duration in seconds requested for the open state.

public int? BreakDurationSeconds { get; }

int?

Gets an empty circuit-breaker-settings instance.

public static CircuitBreakerSettings Empty { get; }

CircuitBreakerSettings

Gets a value indicating whether circuit-breaker support was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets the failure ratio threshold requested for opening the breaker.

public decimal? FailureRatio { get; }

decimal?

Gets a value indicating whether any circuit-breaker settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the minimum throughput required before the breaker evaluates failures.

public int? MinimumThroughput { get; }

int?

Gets the sampling duration in seconds used by the breaker.

public int? SamplingDurationSeconds { get; }

int?