Skip to content

feat: add multi-region endpoint resolution with self-heal regions registry#66

Draft
OMpawar-21 wants to merge 1 commit into
betafrom
enhc/DX-7280
Draft

feat: add multi-region endpoint resolution with self-heal regions registry#66
OMpawar-21 wants to merge 1 commit into
betafrom
enhc/DX-7280

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor

Summary

  • Adds Endpoint.GetContentstackEndpoint(region, service) for resolving
    Contentstack service URLs across all 7 regions (NA, EU, AU, Azure-NA,
    Azure-EU, GCP-NA, GCP-EU) and 18 service keys
  • regions.json registry auto-downloads from CDN on first use and caches
    on disk — SDK self-heals if the file is missing, no setup required
  • Scripts/refresh-region.cs bundled in the NuGet package — placed in
    Scripts/ on first dotnet build, run anytime to pull latest regions
  • Utils.GetContentstackEndpoint(...) proxy added for convenience
  • Case-insensitive region alias support ("us", "AWS-NA", "azure_na")
  • omitHttps flag for SDK host configuration

Test plan

  • dotnet test --filter "FullyQualifiedName~EndpointTest" — 44 unit tests pass
  • dotnet run Scripts/refresh-region.cs from repo root — All bin dirs

@OMpawar-21 OMpawar-21 requested a review from a team as a code owner June 10, 2026 11:50
@OMpawar-21 OMpawar-21 marked this pull request as draft June 10, 2026 12:10
Assert.Equal(direct, proxy);
}

// ------------------------------------------------------------------

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OMpawar-21 Remove the commented lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants