コード例 #1
0
ファイル: RateWareProxy.cs プロジェクト: jpheary/Argix08
 public static void WriteLogEntry(TraceMessage m)
 {
     //Write an entry into the Argix log
     try {
         _Client.WriteLogEntry(m);
     }
     catch (FaultException fe) { throw new ApplicationException("WriteLogEntry() service error.", fe); }
     catch (TimeoutException te) { throw new ApplicationException("WriteLogEntry() timeout error.", te); }
     catch (CommunicationException ce) { throw new ApplicationException("WriteLogEntry() communication error.", ce); }
 }
コード例 #2
0
 public static void WriteLogEntry(TraceMessage m)
 {
     //Get the operating enterprise terminal
     try {
         _Client = new InvoicingServiceClient();
         _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); }
 }
コード例 #3
0
ファイル: FinanceGateway.cs プロジェクト: jpheary/Argix10
        public static void WriteLogEntry(TraceMessage m)
        {
            //Write an entry into the Argix log
            RateQuoteServiceClient client = new RateQuoteServiceClient();

            try {
                //client.WriteLogEntry(m);
            }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); }
            catch (FaultException <ConfigurationFault> cfe) { client.Abort(); throw new ApplicationException(cfe.Detail.Message); }
            catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); }
        }
コード例 #4
0
ファイル: FinanceGateway.cs プロジェクト: jpheary/Argix10
        public static void WriteLogEntry(TraceMessage m)
        {
            //Get the operating enterprise terminal
            DriverCompServiceClient client = null;

            try {
                client = new DriverCompServiceClient();
                client.WriteLogEntry(m);
                client.Close();
            }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); }
            catch (FaultException <ConfigurationFault> cfe) { client.Abort(); throw new ApplicationException(cfe.Detail.Message); }
            catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); }
        }
コード例 #5
0
ファイル: InvoicingService.cs プロジェクト: jpheary/Argix10
 public void WriteLogEntry(TraceMessage m)
 {
     //Write o to database log if event level is severe enough
     new Argix.AppService(EnterpriseGateway.SQL_CONNID).WriteLogEntry(m);
 }