Class ResilienceSettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven resilience settings for a Cephalon app.
public sealed class ResilienceSettingsInheritance
Section titled “Inheritance”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”ResilienceSettings(RetrySettings?, TimeoutSettings?, CircuitBreakerSettings?, BulkheadSettings?, RateLimitingSettings?, IReadOnlyList<BehaviorExecutionResilienceOverrideSettings>?)
Section titled “ ResilienceSettings(RetrySettings?, TimeoutSettings?, CircuitBreakerSettings?, BulkheadSettings?, RateLimitingSettings?, IReadOnlyList<BehaviorExecutionResilienceOverrideSettings>?)”Initializes a new instance of the
public ResilienceSettings(RetrySettings? retry = null, TimeoutSettings? timeout = null, CircuitBreakerSettings? circuitBreaker = null, BulkheadSettings? bulkhead = null, RateLimitingSettings? rateLimiting = null, IReadOnlyList<BehaviorExecutionResilienceOverrideSettings>? behaviorExecutionOverrides = null)Parameters
Section titled “Parameters”retry RetrySettings?
The retry settings resolved for the app.
timeout TimeoutSettings?
The timeout settings resolved for the app.
circuitBreaker CircuitBreakerSettings?
The circuit-breaker settings resolved for the app.
bulkhead BulkheadSettings?
The bulkhead settings resolved for the app.
rateLimiting RateLimitingSettings?
The rate-limiting settings resolved for the app.
behaviorExecutionOverrides IReadOnlyList<BehaviorExecutionResilienceOverrideSettings>?
The named behavior-execution override policies targeted at specific behaviors or transports.
Properties
Section titled “Properties”BehaviorExecutionOverrides
Section titled “ BehaviorExecutionOverrides”Gets the named behavior-execution override policies targeted at specific behaviors or transports.
public IReadOnlyList<BehaviorExecutionResilienceOverrideSettings> BehaviorExecutionOverrides { get; }Property Value
Section titled “Property Value”IReadOnlyList<BehaviorExecutionResilienceOverrideSettings>
Bulkhead
Section titled “ Bulkhead”Gets the bulkhead settings resolved for the app.
public BulkheadSettings Bulkhead { get; }Property Value
Section titled “Property Value”CircuitBreaker
Section titled “ CircuitBreaker”Gets the circuit-breaker settings resolved for the app.
public CircuitBreakerSettings CircuitBreaker { get; }Property Value
Section titled “Property Value”Gets an empty resilience-settings instance.
public static ResilienceSettings Empty { get; }Property Value
Section titled “Property Value”HasValues
Section titled “ HasValues”Gets a value indicating whether any resilience settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”RateLimiting
Section titled “ RateLimiting”Gets the rate-limiting settings resolved for the app.
public RateLimitingSettings RateLimiting { get; }Property Value
Section titled “Property Value”Gets the retry settings resolved for the app.
public RetrySettings Retry { get; }Property Value
Section titled “Property Value”Timeout
Section titled “ Timeout”Gets the timeout settings resolved for the app.
public TimeoutSettings Timeout { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads resilience settings from configuration.
public static ResilienceSettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The configuration source that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed resilience settings.