public static bool IsFeatureEnabled(SkuType sku, RestrictedFeatures feature, out bool isFeatureExpected)
        {
            isFeatureExpected = true;
            switch (feature)
            {
            case RestrictedFeatures.CustomAuth:
                return(true);

            case RestrictedFeatures.ReportBuilder:
                return(SkuUtil.IsWorkgroupOrHigher(sku));

            case RestrictedFeatures.NoCpuThrottling:
            case RestrictedFeatures.NoMemoryThrottling:
                return(SkuUtil.IsDataCenterOrHigher(sku));

            case RestrictedFeatures.ScaleOut:
            case RestrictedFeatures.DataDrivenSubscriptions:
            case RestrictedFeatures.DataAlerting:
            case RestrictedFeatures.Crescent:
            case RestrictedFeatures.KpiItems:
            case RestrictedFeatures.MobileReportItems:
            case RestrictedFeatures.Branding:
                return(SkuUtil.IsEnterpriseOrHigher(sku));

            case RestrictedFeatures.NonSqlDataSources:
            case RestrictedFeatures.OtherSkuDatasources:
            case RestrictedFeatures.RemoteDataSources:
            case RestrictedFeatures.Caching:
            case RestrictedFeatures.ExecutionSnapshots:
            case RestrictedFeatures.History:
            case RestrictedFeatures.Delivery:
            case RestrictedFeatures.Scheduling:
            case RestrictedFeatures.Extensibility:
            case RestrictedFeatures.Sharepoint:
            case RestrictedFeatures.Subscriptions:
            case RestrictedFeatures.CustomRolesSecurity:
            case RestrictedFeatures.ModelItemSecurity:
            case RestrictedFeatures.DynamicDrillthrough:
            case RestrictedFeatures.EventGeneration:
            case RestrictedFeatures.ComponentLibrary:
            case RestrictedFeatures.SharedDataset:
            case RestrictedFeatures.PowerBI:
                return(SkuUtil.IsStandardOrHigher(sku));

            default:
                isFeatureExpected = false;
                return(false);
            }
        }
        public static bool IsFeatureEnabled(SkuType sku, RestrictedFeatures feature)
        {
            bool flag = default(bool);

            return(SkuUtil.IsFeatureEnabled(sku, feature, out flag));
        }
Beispiel #3
0
        public static bool IsFeatureEnabled(SkuType sku, RestrictedFeatures feature)
        {
            bool isFeatureExpected;

            return(IsFeatureEnabled(sku, feature, out isFeatureExpected));
        }