Method | Description | |
---|---|---|
BackOffHandler ( IBackOff backOff ) : System |
Constructs a new back-off handler with the given back-off.
|
|
BackOffHandler ( Initializer initializer ) : System |
Constructs a new back-off handler with the given initializer.
|
|
HandleExceptionAsync ( Google.Apis.Http.HandleExceptionArgs args ) : Task |
||
HandleResponseAsync ( Google.Apis.Http.HandleUnsuccessfulResponseArgs args ) : Task |
Method | Description | |
---|---|---|
Wait ( System.TimeSpan ts, |
Waits the given time span. Overriding this method is recommended for mocking purposes.
|
Method | Description | |
---|---|---|
HandleAsync ( bool supportsRetry, int currentFailedTry, |
Handles back-off. In case the request doesn't support retry or the back-off time span is greater than the maximum time span allowed for a request, the handler returns
|
public BackOffHandler ( IBackOff backOff ) : System | ||
backOff | IBackOff | The back-off policy. |
return | System |
public BackOffHandler ( Initializer initializer ) : System | ||
initializer | Initializer | |
return | System |
public HandleExceptionAsync ( Google.Apis.Http.HandleExceptionArgs args ) : Task |
||
args | Google.Apis.Http.HandleExceptionArgs | |
return | Task |
public HandleResponseAsync ( Google.Apis.Http.HandleUnsuccessfulResponseArgs args ) : Task |
||
args | Google.Apis.Http.HandleUnsuccessfulResponseArgs | |
return | Task |
protected Wait ( System.TimeSpan ts, |
||
ts | System.TimeSpan | TimeSpan to wait (and block the current thread). |
cancellationToken | The cancellation token in case the user wants to cancel the operation in /// the middle. | |
return | Task |