namespace DocumentService.Client.Configuration; /// /// Configuration options for DocumentService HTTP client. /// public class DocumentServiceClientOptions { /// /// Base URL of the DocumentService API. /// /// https://api.example.com public string BaseUrl { get; set; } = "http://localhost:5000"; /// /// HTTP request timeout duration. /// public TimeSpan Timeout { get; set; } = TimeSpan.FromMinutes(5); /// /// Maximum number of retry attempts for failed requests. /// public int MaxRetries { get; set; } = 3; /// /// Whether to throw exceptions on HTTP error responses (4xx, 5xx). /// If false, returns null/default values instead. /// public bool ThrowOnError { get; set; } = true; }