public bool CanRetry(Exception exception) { return(exception is SampleException && ErrorCodesCanRetryMap.CanRetry(((SampleException)exception).ErrorCode)); }
public override bool IsRetryAllowed(Exception exception) { return(exception is SampleException && ErrorCodesCanRetryMap.CanRetry(((SampleException)exception).ErrorCode)); }