up
This commit is contained in:
44
src/Symbols/StellaOps.Symbols.Client/SymbolsClientOptions.cs
Normal file
44
src/Symbols/StellaOps.Symbols.Client/SymbolsClientOptions.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user