コード例 #1
0
 public OperationResult <List <User> > FindUsers(String param)
 {
     try
     {
         return(channel.FindUsers(param));
     }
     catch (CommunicationException ex)
     {
         ReloadChannel();
         var res = FindUsers(param);
         if (!res.IsOk)
         {
             res = new OperationResult <List <User> >(new List <User>(), false, ex.Message);
         }
         return(res);
     }
 }
コード例 #2
0
        private void ExecuteFindCommand(object parametr)
        {
            var res = service.FindUsers(SearchQuery);

            Users = new ObservableCollection <User>(res.Response);
        }