I have the following code:
var policyResult = await _circuitBreakerPolicy.ExecuteAndCaptureAsync(async () =>
{
return await configuredTaskAwaitable;
});
return policyResult.Result;
When the circuit breaker is in Open state, the result is simply null, and no exception is thrown. Shouldn't it throw an exception if the circuit is opened?