Files
git.stella-ops.org/src/Symbols/StellaOps.Symbols.Client/SymbolsClientOptions.cs
StellaOps Bot 999e26a48e up
2025-12-13 02:22:15 +02:00

45 lines
1.3 KiB
C#

namespace StellaOps.Symbols.Client;
/// <summary>
/// Configuration options for the Symbols client.
/// </summary>
public sealed class SymbolsClientOptions
{
/// <summary>
/// Base URL of the Symbols server.
/// </summary>
public string BaseUrl { get; set; } = "http://localhost:5270";
/// <summary>
/// Timeout for HTTP requests in seconds.
/// </summary>
public int TimeoutSeconds { get; set; } = 30;
/// <summary>
/// Maximum retry attempts for transient failures.
/// </summary>
public int MaxRetries { get; set; } = 3;
/// <summary>
/// Enable local disk cache for resolved symbols.
/// </summary>
public bool EnableDiskCache { get; set; } = true;
/// <summary>
/// Path to the disk cache directory.
/// </summary>
public string CachePath { get; set; } = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"StellaOps", "SymbolsCache");
/// <summary>
/// Maximum size of disk cache in bytes (default 1GB).
/// </summary>
public long MaxCacheSizeBytes { get; set; } = 1024 * 1024 * 1024;
/// <summary>
/// Tenant ID header value for multi-tenant requests.
/// </summary>
public string? TenantId { get; set; }
}