This extension allows you to retry a REST request if there is RestException
.
var rc = new RestClient(
Environment.GetEnvironmentVariable("RINGCENTRAL_CLIENT_ID"),
Environment.GetEnvironmentVariable("RINGCENTRAL_CLIENT_SECRET"),
Environment.GetEnvironmentVariable("RINGCENTRAL_SERVER_URL")
);
await rc.Authorize(
Environment.GetEnvironmentVariable("RINGCENTRAL_JWT_TOKEN")
);
var retryExtension = new RetryExtension();
await rc.InstallExtension(retryExtension);
This extension is inspired by its TypeScript counterpart , check its documentation for more information.