Beispiel #1
0
        public override IFeedBack ProcessCommand(TcpServer Server, string[] args)
        {
            if (ArgumentsValidation(args))
            {
                DoubleArgs firstArg  = Inputs[0] as DoubleArgs;
                DoubleArgs secondArg = Inputs[1] as DoubleArgs;

                string result = Server.Adder(double.Parse(firstArg.GetValue()), double.Parse(secondArg.GetValue())).ToString();
                return(new ValidFeedBack(string.Format("Result is: {0}", result)));
            }

            return(InvalidInputParameter());
        }