コード例 #1
0
ファイル: service.cs プロジェクト: ssickles/archive
        public ResponseMessage Multiply(RequestMessage request)
        {
            double n1 = request.N1;
            double n2 = request.N2;
            double result = n1*n2;

            ResponseMessage response = new ResponseMessage();
            response.Result = result;
            return response;
        }
コード例 #2
0
ファイル: service.cs プロジェクト: ssickles/archive
        public ResponseMessage Subtract(RequestMessage request)
        {
            double n1 = request.N1;
            double n2 = request.N2;
            double result = n1 - n2;

            ResponseMessage response = new ResponseMessage();
            response.Result = result;
            return response;
        }
コード例 #3
0
ファイル: service.cs プロジェクト: ssickles/archive
        public ResponseMessage Divide(RequestMessage request)
        {
            double n1 = request.N1;
            double n2 = request.N2;
            double result = n1/n2;

            ResponseMessage response = new ResponseMessage();
            response.Result = result;
            return response;
        }