public void WriteLogEntry(int terminalID, TraceMessage m) { //Get the operating enterprise terminal TLViewerServiceClient client = new TLViewerServiceClient(); try { client.WriteLogEntry(m); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <ConfigurationFault> efe) { client.Abort(); throw new ApplicationException(efe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } }
public TLs GetAgentSummary(int terminalID) { //Get a view of open TLs TLs tls = new TLs(); TLViewerServiceClient client = new TLViewerServiceClient(); try { tls = client.GetAgentSummary(terminalID); 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); } return(tls); }
public Terminals GetTerminals() { //Get a list of Argix terminals Terminals terminals = new Terminals(); TLViewerServiceClient client = new TLViewerServiceClient(); try { terminals = client.GetTerminals(); 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); } return(terminals); }
public UserConfiguration GetUserConfiguration(int terminalID, string application, string[] usernames) { //Get the operating enterprise terminal UserConfiguration config = null; TLViewerServiceClient client = new TLViewerServiceClient(); try { config = client.GetUserConfiguration(application, usernames); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <ConfigurationFault> efe) { client.Abort(); throw new ApplicationException(efe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(config); }
public ServiceInfo GetServiceInfo(int terminalID) { //Get the operating enterprise terminal ServiceInfo terminal = null; TLViewerServiceClient client = new TLViewerServiceClient(); try { terminal = client.GetServiceInfo(); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <ConfigurationFault> efe) { client.Abort(); throw new ApplicationException(efe.Detail.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(terminal); }