Exemple #1
0
        public static FluentClient Create()
        {
            var client = new FluentClient(BaseUri);

            client.SetOptions(new FluentClientOptions()
            {
                IgnoreHttpErrors = true, IgnoreNullArguments = true
            });
            client.SetRequestCoordinator(
                maxRetries: 5,
                shouldRetry: req => req.StatusCode != HttpStatusCode.OK,
                getDelay: (attempt, response) => TimeSpan.FromSeconds(attempt));
            return(client);
        }