logging most communication exceptions

This commit is contained in:
Michele 2020-12-13 22:27:51 +00:00
parent d61d207fb8
commit ef2ddd16bf
6 changed files with 80 additions and 40 deletions

View file

@ -166,6 +166,7 @@ namespace Sledgemapper
{
await Policy
.Handle<ApiException>(ex => ex.StatusCode == HttpStatusCode.RequestTimeout)
.RetryForeverAsync()
//.RetryAsync(Polly.RetrySyntax., async (exception, retryCount) => await Task.Delay(500))
.ExecuteAsync(async () => await call().ConfigureAwait(false))