public static IEnumerable <string> GetMashupNames(this TpFeature feature) { return(feature.GetAttributes <MashupAttribute>().Select(x => x.MashupName)); }
public static bool IsEnabled(this TpFeature feature) { return(ObjectFactory.GetInstance <ITpFeatureList>().IsEnabled(feature)); }
public static string GetClientName(this TpFeature feature) { return(feature.GetAttribute <ClientFeatureAttribute>().Bind(x => x.ClientFeatureName).GetOrElse(() => feature.ToString().CamelCase())); }
public static FeatureTogglingContext <TService> IfFeatureEnabled <TService>(this CreatePluginFamilyExpression <TService> expr, TpFeature feature) { return(new FeatureTogglingContext <TService>(features => features.IsEnabled(feature), expr)); }