我有以下代码:
var expirationPeriodMilliseconds = 1000;
return Policy
.HandleResult<EnquiryResult>(message => message.Status == EnquiryStatus.SystemError)
.RetryForeverAsync() // instead run until expirationPeriodMilliseconds
.ExecuteAsync(async () =>
await ratingProvider.Enquire(request, cancellationToken));
是否有解决方案让波利在一段时间内使用重试选项?有任何想法吗?谢谢