We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3f4c0 commit 73d261aCopy full SHA for 73d261a
OptimizelySDK/Entity/Experiment.cs
@@ -22,7 +22,7 @@
22
23
namespace OptimizelySDK.Entity
24
{
25
- public class Experiment : IdKeyEntity
+ public class Experiment : IdKeyEntity, IExperimentCore
26
27
private const string STATUS_RUNNING = "Running";
28
@@ -281,5 +281,10 @@ public bool IsUserInForcedVariation(string userId)
281
282
return ForcedVariations != null && ForcedVariations.ContainsKey(userId);
283
}
284
+
285
+ /// <summary>
286
+ /// Determine if experiment is currently activated/running (IExperimentCore implementation)
287
+ /// </summary>
288
+ public bool IsActivated => IsExperimentRunning;
289
290
0 commit comments