Ejemplo n.º 1
0
        private static void writeMessage(string type, string message)
        {
            string source     = SoftbladeParameters.getParameter(SoftbladeParameters.SOURCE);
            string customerId = SoftbladeParameters.getParameter(SoftbladeParameters.CUSTOMER_ID_PARAMETER);

            RestServer rs = new RestServer();

            CustomerMessage output = new CustomerMessage();

            output.setMessage(message);
            output.setCustomerId(customerId);
            output.setSource(source);
            output.setType(type);
            logger.Debug("Writing message: " + output.ToString());
            if (sendToServer)
            {
                rs.writeCustomerMessage(output);
            }
        }
Ejemplo n.º 2
0
        private static void writeMessage(string type, string message)
        {
            string source = SoftbladeParameters.getParameter(SoftbladeParameters.SOURCE);
            string customerId = SoftbladeParameters.getParameter(SoftbladeParameters.CUSTOMER_ID_PARAMETER);

            RestServer rs = new RestServer();

            CustomerMessage output = new CustomerMessage();
            output.setMessage(message);
            output.setCustomerId(customerId);
            output.setSource(source);
            output.setType(type);
            logger.Debug("Writing message: " + output.ToString());
            if (sendToServer)
            {
                rs.writeCustomerMessage(output);
            }
        }