Skip to content

Commit 73d261a

Browse files
[FSSDK-11544] Experiment adjustment
1 parent 3f3f4c0 commit 73d261a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

OptimizelySDK/Entity/Experiment.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace OptimizelySDK.Entity
2424
{
25-
public class Experiment : IdKeyEntity
25+
public class Experiment : IdKeyEntity, IExperimentCore
2626
{
2727
private const string STATUS_RUNNING = "Running";
2828

@@ -281,5 +281,10 @@ public bool IsUserInForcedVariation(string userId)
281281
{
282282
return ForcedVariations != null && ForcedVariations.ContainsKey(userId);
283283
}
284+
285+
/// <summary>
286+
/// Determine if experiment is currently activated/running (IExperimentCore implementation)
287+
/// </summary>
288+
public bool IsActivated => IsExperimentRunning;
284289
}
285290
}

0 commit comments

Comments
 (0)