Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 private Task <bool?> GetResponse(MethodInfo method, IEnumerable <object> list)
 => Utils.ExtractValTask <bool>(Utils.CallMethod(this, method, list));
Exemplo n.º 3
0
 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)
                ));
 }