- Timestamp:
- 05/04/17 17:19:35 (8 years ago)
- Location:
- branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration
- Files:
-
- 3 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 } -
branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration/ServiceClient/AdministrationServiceClient.cs
r14738 r14927 12 12 { 13 13 using System.Runtime.Serialization; 14 15 16 [System.Diagnostics.DebuggerStepThroughAttribute()] 17 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 18 [System.Runtime.Serialization.DataContractAttribute(Name="OKBItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 19 "DataTransfer")] 20 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.NamedOKBItem))] 21 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.AlgorithmClass))] 22 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.Algorithm))] 23 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.ProblemClass))] 24 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.Problem))] 25 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.Platform))] 26 public partial class OKBItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 27 { 28 29 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 30 31 private long IdField; 32 33 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 34 { 35 get 36 { 37 return this.extensionDataField; 38 } 39 set 40 { 41 this.extensionDataField = value; 42 } 43 } 44 45 [System.Runtime.Serialization.DataMemberAttribute()] 46 public long Id 47 { 48 get 49 { 50 return this.IdField; 51 } 52 set 53 { 54 if ((this.IdField.Equals(value) != true)) 55 { 56 this.IdField = value; 57 this.RaisePropertyChanged("Id"); 58 } 59 } 60 } 61 62 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 14 15 16 [System.Diagnostics.DebuggerStepThroughAttribute()] 17 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 18 [System.Runtime.Serialization.DataContractAttribute(Name = "OKBItem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 19 "DataTransfer")] 20 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.NamedOKBItem))] 21 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.AlgorithmClass))] 22 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.Algorithm))] 23 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.ProblemClass))] 24 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.Problem))] 25 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Administration.Platform))] 26 public partial class OKBItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 27 28 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 29 30 private long IdField; 31 32 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 33 get { 34 return this.extensionDataField; 35 } 36 set { 37 this.extensionDataField = value; 38 } 63 39 } 64 65 [System.Diagnostics.DebuggerStepThroughAttribute()] 40 41 [System.Runtime.Serialization.DataMemberAttribute()] 42 public long Id { 43 get { 44 return this.IdField; 45 } 46 set { 47 if ((this.IdField.Equals(value) != true)) { 48 this.IdField = value; 49 this.RaisePropertyChanged("Id"); 50 } 51 } 52 } 53 54 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 55 } 56 57 [System.Diagnostics.DebuggerStepThroughAttribute()] 66 58 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 67 59 [System.Runtime.Serialization.DataContractAttribute(Name="NamedOKBItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + … … 113 105 } 114 106 } 115 116 [System.Diagnostics.DebuggerStepThroughAttribute()] 117 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 118 [System.Runtime.Serialization.DataContractAttribute(Name="AlgorithmClass", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 119 "DataTransfer")] 120 public partial class AlgorithmClass : HeuristicLab.Clients.OKB.Administration.NamedOKBItem 121 { 122 } 123 124 [System.Diagnostics.DebuggerStepThroughAttribute()] 107 108 [System.Diagnostics.DebuggerStepThroughAttribute()] 109 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 110 [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmClass", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 111 "DataTransfer")] 112 public partial class AlgorithmClass : HeuristicLab.Clients.OKB.Administration.NamedOKBItem { 113 } 114 115 [System.Diagnostics.DebuggerStepThroughAttribute()] 125 116 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 126 117 [System.Runtime.Serialization.DataContractAttribute(Name="Algorithm", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + … … 205 196 } 206 197 } 207 208 [System.Diagnostics.DebuggerStepThroughAttribute()] 209 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 210 [System.Runtime.Serialization.DataContractAttribute(Name="ProblemClass", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 211 "DataTransfer")] 212 public partial class ProblemClass : HeuristicLab.Clients.OKB.Administration.NamedOKBItem 213 { 214 } 215 216 [System.Diagnostics.DebuggerStepThroughAttribute()] 198 199 [System.Diagnostics.DebuggerStepThroughAttribute()] 200 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 201 [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemClass", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 202 "DataTransfer")] 203 public partial class ProblemClass : HeuristicLab.Clients.OKB.Administration.NamedOKBItem { 204 } 205 206 [System.Diagnostics.DebuggerStepThroughAttribute()] 217 207 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 218 208 [System.Runtime.Serialization.DataContractAttribute(Name="Problem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + … … 297 287 } 298 288 } 299 300 [System.Diagnostics.DebuggerStepThroughAttribute()] 301 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 302 [System.Runtime.Serialization.DataContractAttribute(Name="Platform", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 303 "DataTransfer")] 304 public partial class Platform : HeuristicLab.Clients.OKB.Administration.NamedOKBItem 305 { 306 } 307 308 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 289 290 [System.Diagnostics.DebuggerStepThroughAttribute()] 291 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 292 [System.Runtime.Serialization.DataContractAttribute(Name = "Platform", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." + 293 "DataTransfer")] 294 public partial class Platform : HeuristicLab.Clients.OKB.Administration.NamedOKBItem { 295 } 296 297 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 309 298 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="HeuristicLab.Clients.OKB.Administration.IAdministrationService")] 310 299 public interface IAdministrationService … … 410 399 void UpdateProblemData(long problemId, byte[] data); 411 400 } 412 413 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 414 public interface IAdministrationServiceChannel : HeuristicLab.Clients.OKB.Administration.IAdministrationService, System.ServiceModel.IClientChannel 415 { 416 } 417 418 [System.Diagnostics.DebuggerStepThroughAttribute()] 401 402 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 403 public interface IAdministrationServiceChannel : HeuristicLab.Clients.OKB.Administration.IAdministrationService, System.ServiceModel.IClientChannel { 404 } 405 406 [System.Diagnostics.DebuggerStepThroughAttribute()] 419 407 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 420 408 public partial class AdministrationServiceClient : System.ServiceModel.ClientBase<HeuristicLab.Clients.OKB.Administration.IAdministrationService>, HeuristicLab.Clients.OKB.Administration.IAdministrationService -
branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration/ServiceClient/OKBItemCollection.cs
r14185 r14927 60 60 AdministrationClient.Delete(item); 61 61 removed.Add(item); 62 } 63 catch (Exception ex) { 62 } catch (Exception ex) { 64 63 exception = ex; 65 64 notremoved.Add(item);
Note: See TracChangeset
for help on using the changeset viewer.