[FSSDK-11463] C# - Add SDK Multi-Region Support for Data Hosting#383
Merged
esrakartalOpt merged 9 commits intomasterfrom Aug 15, 2025
Merged
[FSSDK-11463] C# - Add SDK Multi-Region Support for Data Hosting#383esrakartalOpt merged 9 commits intomasterfrom
esrakartalOpt merged 9 commits intomasterfrom
Conversation
…o esra/FSSDK-11463_csharp_eu_data_hosting
There was a problem hiding this comment.
Pull Request Overview
This PR adds multi-region support for data hosting in the Optimizely C# SDK, allowing event dispatching to region-specific endpoints (US and EU) rather than hardcoding the US endpoint.
Key changes:
- Added Region property to ProjectConfig interface and implementation
- Replaced hardcoded US event endpoint with configurable region-specific endpoints
- Updated event factories to use region-based endpoint selection with US as fallback
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| OptimizelySDK/ProjectConfig.cs | Added Region property to ProjectConfig interface |
| OptimizelySDK/Config/DatafileProjectConfig.cs | Implemented Region property and cleaned up string formatting |
| OptimizelySDK/Event/EventFactory.cs | Added region-specific endpoint mapping and selection logic |
| OptimizelySDK/Event/Entity/EventContext.cs | Added Region property to EventContext with builder pattern support |
| OptimizelySDK/Event/UserEventFactory.cs | Updated to include region in event context creation |
| OptimizelySDK/Event/Builder/EventBuilder.cs | Updated deprecated builder to use new region-aware endpoints |
| OptimizelySDK.Tests/OptimizelyTest.cs | Updated test to use new endpoint reference |
| OptimizelySDK.Tests/EventTests/TestForwardingEventDispatcher.cs | Updated test assertion to use new endpoint reference |
| OptimizelySDK.Tests/EventTests/EventFactoryTest.cs | Added comprehensive tests for EU and invalid region handling, updated existing tests |
| OptimizelySDK.Tests/EventTests/EventBuilderTest.cs | Updated all test assertions to use new endpoint references |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
junaed-optimizely
approved these changes
Aug 14, 2025
Contributor
junaed-optimizely
left a comment
There was a problem hiding this comment.
Looks good overall. Couple of suggestions!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
Issues