Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/16/10 12:44:12 (15 years ago)
Author:
gkronber
Message:

Fixed service references in plugin infrastructure. #860 (Deployment server for plugin installation from web locations)

Location:
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManager.cs

    r2790 r2811  
    2727using System.IO;
    2828using System.ComponentModel;
    29 using UpdateService = HeuristicLab.PluginInfrastructure.PluginUpdateService;
    3029using System.Reflection;
    3130
     
    185184      var pluginDescriptions = from name in pluginNames
    186185                               select GetPluginDescription(name);
    187       Dictionary<UpdateService.PluginDescription, string> matchingPlugins = new Dictionary<UpdateService.PluginDescription, string>();
     186      Dictionary<DeploymentService.PluginDescription, string> matchingPlugins = new Dictionary<DeploymentService.PluginDescription, string>();
    188187      foreach (var updateLocation in HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocations) {
    189         using (var client = new UpdateService.UpdateClient("", updateLocation)) {
     188        using (var client = new DeploymentService.UpdateClient("", updateLocation)) {
    190189          var updateLocationMatchingPlugins = from desc in pluginDescriptions
    191190                                              from info in client.GetPlugins()
    192191                                              where desc.Name == info.Name
    193192                                              select info;
    194           foreach (UpdateService.PluginDescription info in updateLocationMatchingPlugins) {
     193          foreach (DeploymentService.PluginDescription info in updateLocationMatchingPlugins) {
    195194            // keep only the highest version of any plugin
    196195            var existingPlugin = matchingPlugins.Keys.FirstOrDefault(x => x.Name == info.Name);
     
    207206        var groupedInfos = matchingPlugins.GroupBy(x => x.Value);
    208207        foreach (var group in groupedInfos) {
    209           using (var client = new UpdateService.UpdateClient(group.Key)) {
     208          using (var client = new DeploymentService.UpdateClient(group.Key)) {
    210209            foreach (var info in group) {
    211210              client.GetPlugin(info.Key);
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerConsole.cs

    r2790 r2811  
    2727using System.IO;
    2828using System.ComponentModel;
    29 using UpdateService = HeuristicLab.PluginInfrastructure.PluginUpdateService;
     29
    3030
    3131namespace HeuristicLab.PluginInfrastructure.Advanced {
     
    4444    void installManager_PreUpdatePlugin(object sender, PluginInfrastructureCancelEventArgs e) {
    4545      Console.WriteLine("Following plugins are updated:");
    46       var infos = (IEnumerable<UpdateService.PluginDescription>)e.Entity;
     46      var infos = (IEnumerable<PluginDescription>)e.Entity;
    4747      foreach (var info in infos) {
    4848        Console.WriteLine(info.Name + " " + info.Version);
     
    5454
    5555    void installManager_PluginUpdated(object sender, PluginInfrastructureEventArgs e) {
    56       foreach (var info in (IEnumerable<UpdateService.PluginDescription>)e.Entity)
     56      foreach (var info in (IEnumerable<PluginDescription>)e.Entity)
    5757        Console.WriteLine("Updated: {0}", info.Name);
    5858    }
Note: See TracChangeset for help on using the changeset viewer.