Relativity.DataExchange.RestClient
class RestClient
Represents a service class object to perform REST operations used by import/export API. This class cannot be inherited.
namespace Relativity.DataExchange
{
internal class RestClient
{
public int MaxRetryAttempts { get; set; }
public double TimeoutSeconds { get; }
public RestClient(RelativityInstanceInfo instance, ILog log, double timeoutSeconds, int maxRetryAttempts);
public Task<string> RequestPostStringAsync(string relativeEndpoint, string content, Func<int, TimeSpan> sleepDurationProvider, Action<Exception, TimeSpan, Context> onRetry, Func<HttpStatusCode, string> onEndpointErrorTitle, Func<HttpStatusCode, string> onEndpointErrorMessage, CancellationToken token);
}
}