Google.Apis.Email_Migration_v2

前端 未结 1 1384
我寻月下人不归
我寻月下人不归 2021-01-26 00:29

I am attempting to retrieve the HttpStatusCode from every UploadAsync method call. I need the status code as to properly perform an exponential back-off algorithm to retry a fai

相关标签:
1条回答
  • 2021-01-26 01:20
    1. The library already supports exponential back-off for 503 responses. In case of 400 (bad request) you should not retry, because you will get the same response over and over again. Take a look in the service initializer parameter DefaultExponentialBackOffPolicy You can also take a look in our ExponentialBackOff implementation. BackOffHandler wraps the logic and implements unsuccessful response handler and exception handler.
    2. GoogleApiRequest doesn't exists anymore.
    3. It looks like we are not setting the status code properly, as you can find here. I open a new issue in our issue tracker, available here - https://code.google.com/p/google-api-dotnet-client/issues/detail?id=425. Feel free to add more content to it.
    0 讨论(0)
提交回复
热议问题