Skip to content

Commit

Permalink
(templates): Enable retry policy for server connection exception in b…
Browse files Browse the repository at this point in the history
…it boilerplate project template #6492 (#6493)
  • Loading branch information
ysmoradi authored Jan 6, 2024
1 parent 99f5eac commit e38576a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
{
return await base.SendAsync(request, cancellationToken);
}
catch (Exception exp) when (exp is not KnownException)
catch (Exception exp) when (exp is not KnownException || exp is ServerConnectionException)
{
lastExp = exp;
await Task.Delay(delay, cancellationToken);
Expand Down

0 comments on commit e38576a

Please sign in to comment.