File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
OptimizelySDK/OptlyConfig Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717using Newtonsoft . Json ;
18+ using System ;
1819using System . Collections . Generic ;
1920
2021namespace OptimizelySDK . OptlyConfig
@@ -27,7 +28,15 @@ public class OptimizelyConfig
2728 public OptimizelyEvent [ ] Events { get ; private set ; }
2829 public OptimizelyAudience [ ] Audiences { get ; private set ; }
2930 public OptimizelyAttribute [ ] Attributes { get ; private set ; }
31+
32+ /// <summary>
33+ /// This experimentsMap is for experiments of legacy projects only.
34+ /// For flag projects, experiment keys are not guaranteed to be unique
35+ /// across multiple flags, so this map may not include all experiments
36+ /// when keys conflict.
37+ /// </summary>
3038 public IDictionary < string , OptimizelyExperiment > ExperimentsMap { get ; private set ; }
39+
3140 public IDictionary < string , OptimizelyFeature > FeaturesMap { get ; private set ; }
3241
3342 private string _datafile ;
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16+ using System ;
1617using System . Collections . Generic ;
1718
1819namespace OptimizelySDK . OptlyConfig
@@ -22,6 +23,8 @@ public class OptimizelyFeature : Entity.IdKeyEntity
2223
2324 public List < OptimizelyExperiment > ExperimentRules { get ; private set ; }
2425 public List < OptimizelyExperiment > DeliveryRules { get ; private set ; }
26+
27+ [ Obsolete ( "Use experimentRules and deliveryRules." ) ]
2528 public IDictionary < string , OptimizelyExperiment > ExperimentsMap { get ; private set ; }
2629 public IDictionary < string , OptimizelyVariable > VariablesMap { get ; private set ; }
2730
You can’t perform that action at this time.
0 commit comments