Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/16/10 18:44:45 (14 years ago)
Author:
gkronber
Message:

Worked on plugin deployment GUI.
Added contact info and license text to DB schema.
#860

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginStore.cs

    r2804 r2816  
    142142
    143143    private void UpdatePlugin(PluginStoreClassesDataContext ctx, Plugin pluginEntity, PluginDescription pluginDescription) {
     144      // update plugin data
     145      pluginEntity.License = pluginDescription.LicenseText;
     146      pluginEntity.ContactInformation = pluginDescription.ContactInformation;
     147     
    144148      // delete cached entry
    145149      if (pluginDescriptions.ContainsKey(pluginEntity)) pluginDescriptions.Remove(pluginEntity);
     
    188192      if (!pluginDescriptions.ContainsKey(plugin)) {
    189193        // no cached description -> create new
    190         var desc = new PluginDescription(plugin.Name, new Version(plugin.Version), from dep in GetDependencies(ctx, plugin)
    191                                                                                    select MakePluginDescription(ctx, dep));
     194        var desc = new PluginDescription(plugin.Name,
     195          new Version(plugin.Version),
     196          from dep in GetDependencies(ctx, plugin)
     197          select MakePluginDescription(ctx, dep),
     198          plugin.ContactInformation ?? string.Empty,
     199          plugin.License ?? string.Empty
     200          );
    192201        pluginDescriptions[plugin] = desc;
    193202      }
     
    199208      plugin.Name = pluginDescription.Name;
    200209      plugin.Version = pluginDescription.Version.ToString();
     210      plugin.ContactInformation = pluginDescription.ContactInformation;
     211      plugin.License = pluginDescription.LicenseText;
    201212      return plugin;
    202213    }
     
    206217      package.Data = pluginPackage;
    207218      package.PluginId = plugin.Id;
    208       package.FileName = string.Empty;
    209219      return package;
    210220    }
Note: See TracChangeset for help on using the changeset viewer.