mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 20:31:13 +00:00
1dcd089d39
Promotes 8 operational levers into config keys with defaults that match the prior source literals byte-for-byte: ProcessingConfig: RegionProcessingTimeoutSeconds (300), RouteProcessingPollIntervalSeconds (5), MaxRoutePointSpacingMeters (200), LatLonTolerance (0.0001). MapConfig: TileSizePixels (256), AllowedZoomLevels ([15..19]), RetryBaseDelaySeconds (1), RetryMaxDelaySeconds (30). Sites updated: RegionService, RouteProcessingService, RoutePointGraphBuilder, RouteValidator, RouteService 4-arg ctor, RouteImageRenderer, GoogleMapsDownloaderV2, TileService. Closes LF-2 by forwarding HttpContext.RequestAborted from GetTileByLatLon into the downloader. appsettings.json gains the 8 new keys at default values. Tests: 141 / 141 unit + 5 / 5 smoke green. New ConfigDefaultsTests pins defaults to original literals; new TileService unit test asserts CT identity from caller to downloader (AZ-371 AC-3). Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
748 B
C#
19 lines
748 B
C#
namespace SatelliteProvider.Common.Configs;
|
|
|
|
public class ProcessingConfig
|
|
{
|
|
public int MaxConcurrentDownloads { get; set; } = 4;
|
|
public int MaxConcurrentRegions { get; set; } = 3;
|
|
public int DefaultZoomLevel { get; set; } = 20;
|
|
public int QueueCapacity { get; set; } = 100;
|
|
public int DelayBetweenRequestsMs { get; set; } = 50;
|
|
public int SessionTokenReuseCount { get; set; } = 100;
|
|
|
|
// AZ-371 / C18 — operational levers promoted from source literals.
|
|
public int RegionProcessingTimeoutSeconds { get; set; } = 300;
|
|
public int RouteProcessingPollIntervalSeconds { get; set; } = 5;
|
|
public double MaxRoutePointSpacingMeters { get; set; } = 200.0;
|
|
public double LatLonTolerance { get; set; } = 0.0001;
|
|
}
|
|
|