Beispiel #1
0
 protected virtual bool IsGlobalFeatureEnabled(Type controllerType, out RequiresGlobalFeatureAttribute attribute)
 {
     attribute = ReflectionHelper.GetSingleAttributeOrDefault <RequiresGlobalFeatureAttribute>(controllerType);
     return(attribute == null || GlobalFeatureManager.Instance.IsEnabled(attribute.GetFeatureName()));
 }
Beispiel #2
0
 public static bool IsGlobalFeatureEnabled(Type type, out RequiresGlobalFeatureAttribute attribute)
 {
     attribute = ReflectionHelper.GetSingleAttributeOrDefault <RequiresGlobalFeatureAttribute>(type);
     return(attribute == null || GlobalFeatureManager.Instance.IsEnabled(attribute.GetFeatureName()));
 }