Example #1
0
 public SecurityManagerSearchArguments(
     TenantConstraint tenantConstraint, ResultSizeConstraint resultSizeConstraint, DisplayNameConstraint displayNameConstraint)
 {
     _tenantConstraint      = tenantConstraint;
     _resultSizeConstraint  = resultSizeConstraint;
     _displayNameConstraint = displayNameConstraint;
 }
Example #2
0
 public static IQueryable <T> Apply <T> (this IQueryable <T> query, ResultSizeConstraint constraint)
 {
     if (constraint == null)
     {
         return(query);
     }
     return(constraint.ApplyTo(query));
 }