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