Exemplo n.º 1
0
        public static void DslAction(this ActionGroupBuilder builder, IEnumerable <Declaration> declarations, Expression <Action <IContext> > action)
        {
            var rewriter        = new ExpressionRewriter(declarations);
            var rewrittenAction = rewriter.Rewrite(action);

            builder.Action(rewrittenAction);
        }
        public static void DslAction(this ActionGroupBuilder builder, IEnumerable <ParameterExpression> declarations, LambdaExpression expression)
        {
            var rewriter        = new ExpressionRewriter(declarations);
            var rewrittenAction = rewriter.Rewrite(expression);

            builder.Action(rewrittenAction);
        }