コード例 #1
0
        public CalcResponse ExecuteExpresion(ExpresionCalcRequest request)
        {
            var commands = request.Expresion.Select(arg => CreateCommand(arg.CommandType, arg.Operand));

            return(new CalcResponse()
            {
                Result = Run(commands.ToArray())
            });
        }
コード例 #2
0
 public IReadOnlyCollection <UnaryCalcRequest> Resolve(ExpresionCalcDto source, ExpresionCalcRequest destination, IReadOnlyCollection <UnaryCalcRequest> destMember, ResolutionContext context)
 {
     //TOD need to be implemented
     throw new NotImplementedException();
 }