public static void WriteLogEntry(TraceMessage m) { //Get the operating enterprise terminal try { _Client = new ShipScheduleServiceClient(); _Client.WriteLogEntry(m); _Client.Close(); } catch (FaultException fe) { throw new ApplicationException("WriteLogEntry() service error.", fe); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("WriteLogEntry() timeout error.", te); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("WriteLogEntry() communication error.", ce); } }
public static void WriteLogEntry(TraceMessage m) { //Get the operating enterprise terminal ISDExportServiceClient client = new ISDExportServiceClient(); try { client.WriteLogEntry(int.Parse(Program.TerminalCode), m); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } }
public static void WriteLogEntry(TraceMessage m) { //Get the operating enterprise terminal ShipScheduleTemplatesServiceClient client = new ShipScheduleTemplatesServiceClient(); try { client.WriteLogEntry(m); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } }
public void WriteLogEntry(int terminalID, TraceMessage m) { //Write o to database log if event level is severe enough new Argix.AppService(EnterpriseGateway.SQL_CONNID).WriteLogEntry(m); }
public void WriteLogEntry(TraceMessage m) { //Write o to database log if event level is severe enough new Argix.AppService(SQL_CONNID).WriteLogEntry(m); }