示例#1
0
        public bool ValidateOperation(Operation operation, SendParameters sendParameters)
        {
            if (operation.IsValid)
            {
                return true;
            }

            string errorMessage = operation.GetErrorMessage();
            this.SendOperationResponse(new OperationResponse { OperationCode = operation.OperationRequest.OperationCode, ReturnCode = -1, DebugMessage = errorMessage }, sendParameters);
            return false;
        }