Exemple #1
0
 static internal void ValidatePaging(ApplicationQueryDescription description)
 {
     if (description.MaxResults.HasValue && description.MaxResults.Value <= 0)
     {
         throw new ArgumentException(StringResources.Error_InvalidMaxResults);
     }
 }
Exemple #2
0
        internal static void Validate(ApplicationQueryDescription description)
        {
            bool hasFilterSet = false;

            ExclusiveFilterHelper(description.ApplicationNameFilter != null, ref hasFilterSet);

            ExclusiveFilterHelper(!string.IsNullOrEmpty(description.ApplicationTypeNameFilter), ref hasFilterSet);

            ExclusiveFilterHelper(description.ApplicationDefinitionKindFilter != ApplicationDefinitionKindFilter.Default, ref hasFilterSet);
        }