public static void handleMessageLog(Message message) { // update the message log with the result MessageLog messageLog = new MessageLog() { messageId = message.id, messageLogTypeId = (int)MessageLogDAO.MessageLogType.WEB_SERVICE, createdDttm = DateTime.Now }; // send to message log MessageLogDAO.insertIntoMessageLog(messageLog); }
public static void handleMessageLog(HL7Message hl7Message, string hl7Input, int messageIdentity, MessageLogDAO.MessageLogType logType) { try { // build MessageLog Entry MessageLog messageLogEntry = new MessageLog() { id = NEG_ONE, messageLogTypeId = (int)logType, messageId = messageIdentity, createdDttm = DateTime.Now }; // insert into the MessageLog messageLogEntry = MessageLogDAO.insertIntoMessageLog(messageLogEntry); } catch (Exception e) { ErrorLogger.LogError(e, "handleMessageLog()", messageIdentity.ToString()); } }