Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (8 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

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  
    7979        problemClasses.AddRange(CallAdministrationService<List<ProblemClass>>(s => s.GetProblemClasses()).OrderBy(x => x.Name));
    8080        problems.AddRange(CallAdministrationService<List<Problem>>(s => s.GetProblems()).OrderBy(x => x.Name));
    81       }
    82       finally {
     81      } finally {
    8382        OnRefreshed();
    8483      }
    8584    }
    8685    public void RefreshAsync(Action<Exception> exceptionCallback) {
    87       var call = new Func<Exception>(delegate() {
     86      var call = new Func<Exception>(delegate () {
    8887        try {
    8988          Refresh();
    90         }
    91         catch (Exception ex) {
     89        } catch (Exception ex) {
    9290          return ex;
    9391        }
    9492        return null;
    9593      });
    96       call.BeginInvoke(delegate(IAsyncResult result) {
     94      call.BeginInvoke(delegate (IAsyncResult result) {
    9795        Exception ex = call.EndInvoke(result);
    9896        if (ex != null) exceptionCallback(ex);
     
    193191      try {
    194192        call(client);
    195       }
    196       finally {
     193      } finally {
    197194        try {
    198195          client.Close();
    199         }
    200         catch (Exception) {
     196        } catch (Exception) {
    201197          client.Abort();
    202198        }
     
    207203      try {
    208204        return call(client);
    209       }
    210       finally {
     205      } finally {
    211206        try {
    212207          client.Close();
    213         }
    214         catch (Exception) {
     208        } catch (Exception) {
    215209          client.Abort();
    216210        }
  • branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration/ServiceClient/AdministrationServiceClient.cs

    r14738 r14927  
    1212{
    1313    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      }
    6339    }
    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()]
    6658    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    6759    [System.Runtime.Serialization.DataContractAttribute(Name="NamedOKBItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." +
     
    113105        }
    114106    }
    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()]
    125116    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    126117    [System.Runtime.Serialization.DataContractAttribute(Name="Algorithm", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." +
     
    205196        }
    206197    }
    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()]
    217207    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    218208    [System.Runtime.Serialization.DataContractAttribute(Name="Problem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Administration." +
     
    297287        }
    298288    }
    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")]
    309298    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="HeuristicLab.Clients.OKB.Administration.IAdministrationService")]
    310299    public interface IAdministrationService
     
    410399        void UpdateProblemData(long problemId, byte[] data);
    411400    }
    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()]
    419407    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    420408    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  
    6060          AdministrationClient.Delete(item);
    6161          removed.Add(item);
    62         }
    63         catch (Exception ex) {
     62        } catch (Exception ex) {
    6463          exception = ex;
    6564          notremoved.Add(item);
Note: See TracChangeset for help on using the changeset viewer.