0
我有以下代码:波利ExecuteAndCaptureAsync没有抛出异常时,断路器开路
var policyResult = await _circuitBreakerPolicy.ExecuteAndCaptureAsync(async() =>
{
return await configuredTaskAwaitable;
});
return policyResult.Result;
当断路器处于打开状态,结果是根本无效,并不会引发任何异常。如果电路被打开,它不应该抛出异常吗?