コード例 #1
0
 communicationTypeTO[] IReferencedataService.GetCommunicationTypes()
 {
     communicationTypeTO[] result = null;
     using (ReferenceDataClient client = new ReferenceDataClient())
     {
         ConfigureClient(client);
         try
         {
             client.Open();
             result = client.GetCommunicationTypes(en);
             client.Close();
         }
         catch (Exception ex)
         {
             client.Abort();
             throw ex;
         }
         return(result);
     }
 }
コード例 #2
0
        public bool CheckConnection()
        {
            bool result = false;

            using (ReferenceDataClient client = new ReferenceDataClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.CheckConnection();
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }