27 : base(errorMessage, responseMessage)
29 if (responseMessage ==
null)
30 throw new ArgumentNullException(nameof(responseMessage));
32 if (!responseMessage.Headers.TryGetValues(HeaderNames.RetryAfter, out var values))
35 var secondsString = values.FirstOrDefault();
36 if (UInt32.TryParse(secondsString, out var seconds))
37 RetryAfter = DateTimeOffset.UtcNow.AddSeconds(seconds);