Class CircuitBreakerSettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven circuit-breaker settings for a Cephalon app.
public sealed class CircuitBreakerSettingsInheritance
Section titled “Inheritance”object ← CircuitBreakerSettings
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”CircuitBreakerSettings(bool?, decimal?, int?, int?, int?)
Section titled “ CircuitBreakerSettings(bool?, decimal?, int?, int?, int?)”Initializes a new instance of the
public CircuitBreakerSettings(bool? enabled = null, decimal? failureRatio = null, int? minimumThroughput = null, int? samplingDurationSeconds = null, int? breakDurationSeconds = null)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”BreakDurationSeconds
Section titled “ BreakDurationSeconds”Gets the break duration in seconds requested for the open state.
public int? BreakDurationSeconds { get; }Property Value
Section titled “Property Value”int?
Gets an empty circuit-breaker-settings instance.
public static CircuitBreakerSettings Empty { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets a value indicating whether circuit-breaker support was explicitly enabled.
public bool? Enabled { get; }Property Value
Section titled “Property Value”bool?
FailureRatio
Section titled “ FailureRatio”Gets the failure ratio threshold requested for opening the breaker.
public decimal? FailureRatio { get; }Property Value
Section titled “Property Value”HasValues
Section titled “ HasValues”Gets a value indicating whether any circuit-breaker settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”MinimumThroughput
Section titled “ MinimumThroughput”Gets the minimum throughput required before the breaker evaluates failures.
public int? MinimumThroughput { get; }Property Value
Section titled “Property Value”int?
SamplingDurationSeconds
Section titled “ SamplingDurationSeconds”Gets the sampling duration in seconds used by the breaker.
public int? SamplingDurationSeconds { get; }Property Value
Section titled “Property Value”int?