public void WriteLogEntry(TraceMessage m) { //Write an entry into the Argix log LTLServiceClient client = new LTLServiceClient(); 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); } }
public ServiceInfo GetServiceInfo() { //Get the operating enterprise terminal LTLServiceClient client = new LTLServiceClient(); try { return(client.GetServiceInfo()); } 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); } }
public UserConfiguration GetUserConfiguration(string application, string[] usernames) { //Get the application configuration for the specified user UserConfiguration config = null; LTLServiceClient client = new LTLServiceClient(); try { config = client.GetUserConfiguration(application, usernames); } 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); } return(config); }