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);
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);