public BoundaryAspectGenerator(object instance, DynamicMetaObject metaObj, IEnumerable <OnMethodBoundaryAspect> aspects, MethodInfo method, IEnumerable <DynamicMetaObject> args, IEnumerable <Type> argsTypes) { _rule = metaObj.Restrictions; var methExecArgs = new MethodExecutionArgs(instance, method, new Arguments(args.Select(x => x.Value).ToArray())); _aspectCalls = new AspectCalls(metaObj.Expression, aspects, args, methExecArgs, argsTypes.Any(t => t.IsByRef)); }
public BoundaryAspectGenerator(object instance, DynamicMetaObject metaObj, IEnumerable<OnMethodBoundaryAspect> aspects, MethodInfo method, IEnumerable<DynamicMetaObject> args, IEnumerable<Type> argsTypes) { _rule = metaObj.Restrictions; var methExecArgs = new MethodExecutionArgs(instance, method, new Arguments(args.Select(x => x.Value).ToArray())); _aspectCalls = new AspectCalls(metaObj.Expression, aspects, args, methExecArgs, argsTypes.Any(t => t.IsByRef)); }