public IQueryable <TQueriable> Scope <TPolicy, TQueriable>(params object[] args) where TPolicy : IPolicy { var policy = GetPolicyOrRaise <TPolicy>(); policy.Before(); return((IQueryable <TQueriable>)Utils.CallMethod(policy, "Scope", args)); }
private Task <bool?> GetResponse(MethodInfo method, IEnumerable <object> list) => Utils.ExtractValTask <bool>(Utils.CallMethod(this, method, list));
public async Task <IQueryable <TQueriable> > ScopeAsync <TPolicy, TQueriable>(params object[] args) where TPolicy : IPolicy { return(await Utils.ExtractRefTask <IQueryable <TQueriable> >( Utils.CallMethod(GetPolicyOrRaise <TPolicy>(), "ScopeAsync", args) )); }