예제 #1
0
        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); }
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }