Skip to content

Commit

Permalink
feat(client): introduce IsFeatureOn method
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhck committed Jul 11, 2020
1 parent c645432 commit bb9024d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sdk/FeatureContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,10 @@ public static void SetupFeatureClients<TUserDataImplementation>(this IServiceCol
collection.AddSingleton<IFeatureWorker>(worker);
collection.AddScoped<FeatureClient>();
}

public static bool IsFeatureOn(this FeatureClient instance, string featId)
{
return instance.GetVariant(featId) == 'B';
}
}
}

0 comments on commit bb9024d

Please # to comment.