Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration/AdministrationClient.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration/AdministrationClient.cs
r14185 r14927 79 79 problemClasses.AddRange(CallAdministrationService<List<ProblemClass>>(s => s.GetProblemClasses()).OrderBy(x => x.Name)); 80 80 problems.AddRange(CallAdministrationService<List<Problem>>(s => s.GetProblems()).OrderBy(x => x.Name)); 81 } 82 finally { 81 } finally { 83 82 OnRefreshed(); 84 83 } 85 84 } 86 85 public void RefreshAsync(Action<Exception> exceptionCallback) { 87 var call = new Func<Exception>(delegate () {86 var call = new Func<Exception>(delegate () { 88 87 try { 89 88 Refresh(); 90 } 91 catch (Exception ex) { 89 } catch (Exception ex) { 92 90 return ex; 93 91 } 94 92 return null; 95 93 }); 96 call.BeginInvoke(delegate (IAsyncResult result) {94 call.BeginInvoke(delegate (IAsyncResult result) { 97 95 Exception ex = call.EndInvoke(result); 98 96 if (ex != null) exceptionCallback(ex); … … 193 191 try { 194 192 call(client); 195 } 196 finally { 193 } finally { 197 194 try { 198 195 client.Close(); 199 } 200 catch (Exception) { 196 } catch (Exception) { 201 197 client.Abort(); 202 198 } … … 207 203 try { 208 204 return call(client); 209 } 210 finally { 205 } finally { 211 206 try { 212 207 client.Close(); 213 } 214 catch (Exception) { 208 } catch (Exception) { 215 209 client.Abort(); 216 210 }
Note: See TracChangeset
for help on using the changeset viewer.