示例#1
0
 public static OutputPipe <TInput> CurrentUserHasClaim <TInput>(
     this IOutputPipe <TInput> pipe,
     string claimType,
     Func <TInput, string> claim,
     object error = null)
     where TInput : class =>
 pipe.CurrentUserHas((p, e) => p.HasClaim(claimType, claim(e)), error);
示例#2
0
 public static OutputPipe <TInput> CurrentUserHas <TInput>(
     this IOutputPipe <TInput> pipe,
     Func <ClaimsPrincipal, bool> predicate,
     object error = null)
     where TInput : class =>
 pipe.CurrentUserHas((p, e) => predicate(p), error);