Esempio n. 1
0
 public AccountVM(long fetch, long offset)
 {
     using (ServiceOrganizationClient serviceAccount = new ServiceOrganizationClient(binding_m, endpoint_m))
     {
         try
         {
             // listContractRegistry_m = new ObservableCollection<ContractRegistry>(serviceContractor.ListContractRegistry(offset, fetch));
             listAccount_m = new ObservableCollection <EA_VC_ORGANIZATION>(serviceAccount.Get(25, 0, ""));
         }
         catch (TimeoutException ex)
         {
             Logger.Log.Error(ex.Message);
         }
         catch (FaultException <FaultMessage> ex)
         {
             Logger.Log.Error("Select is fail(FaultException<FaultMessage>)! " + ex.Detail.Message);
         }
         catch (FaultException ex)
         {
             Logger.Log.Error("Select is fail(FaultException)! " + ex.Message);
         }
         catch (CommunicationException ex)
         {
             Logger.Log.Error(ex.Message);
         }
         catch (Exception ex)
         {
             Logger.Log.Error("Test is fail!" + ex.Message);
         }
     }
 }