Esempio n. 1
0
        public static ContactDS GetContacts()
        {
            //
            ContactDS contacts = null;

            try {
                _Client  = new IssueMgtServiceClient();
                contacts = _Client.GetContacts();
                _Client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("GetContacts() service error.", fe); }
            catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetContacts() timeout error.", te); }
            catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetContacts() communication error.", ce); }
            return(contacts);
        }