Changeset 2860 for branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment
- Timestamp:
- 02/24/10 14:34:07 (15 years ago)
- Location:
- branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginDescription.cs
r2816 r2860 21 21 } 22 22 23 [DataMember(Name = "ContactInformation")] 24 private string contactInformation; 25 public string ContactInformation { 26 get { return contactInformation; } 23 [DataMember(Name = "ContactName")] 24 private string contactName; 25 public string ContactName { 26 get { return contactName; } 27 } 28 29 [DataMember(Name = "ContactEmail")] 30 private string contactEmail; 31 public string ContactEmail { 32 get { return contactEmail; } 27 33 } 28 34 … … 39 45 } 40 46 41 public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies, string contactInformation, string license) { 47 public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies, 48 string contactName, string contactEmail, string license) { 42 49 if (string.IsNullOrEmpty(name)) throw new ArgumentException("name is empty"); 43 if (version == null || dependencies == null || contactInformation == null || license == null) throw new ArgumentNullException(); 50 if (version == null || dependencies == null || 51 contactName == null || contactEmail == null || 52 license == null) throw new ArgumentNullException(); 44 53 this.name = name; 45 54 this.version = version; 46 55 this.dependencies = new List<PluginDescription>(dependencies); 47 56 this.licenseText = license; 48 this.contactInformation = contactInformation; 57 this.contactName = contactName; 58 this.contactEmail = contactEmail; 49 59 } 50 60 … … 54 64 55 65 public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies) 56 : this(name, version, dependencies, string.Empty, string.Empty ) {66 : this(name, version, dependencies, string.Empty, string.Empty, string.Empty) { 57 67 } 58 68 } -
branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginStore.cs
r2816 r2860 144 144 // update plugin data 145 145 pluginEntity.License = pluginDescription.LicenseText; 146 pluginEntity.ContactInformation = pluginDescription.ContactInformation; 147 146 pluginEntity.ContactName = pluginDescription.ContactName; 147 pluginEntity.ContactEmail = pluginDescription.ContactEmail; 148 148 149 // delete cached entry 149 150 if (pluginDescriptions.ContainsKey(pluginEntity)) pluginDescriptions.Remove(pluginEntity); … … 196 197 from dep in GetDependencies(ctx, plugin) 197 198 select MakePluginDescription(ctx, dep), 198 plugin.ContactInformation ?? string.Empty, 199 plugin.ContactName ?? string.Empty, 200 plugin.ContactEmail ?? string.Empty, 199 201 plugin.License ?? string.Empty 200 202 ); … … 208 210 plugin.Name = pluginDescription.Name; 209 211 plugin.Version = pluginDescription.Version.ToString(); 210 plugin.ContactInformation = pluginDescription.ContactInformation; 212 plugin.ContactName = pluginDescription.ContactName; 213 plugin.ContactEmail = pluginDescription.ContactEmail; 211 214 plugin.License = pluginDescription.LicenseText; 212 215 return plugin;
Note: See TracChangeset
for help on using the changeset viewer.