Changeset 2811 for trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Timestamp:
- 02/16/10 12:44:12 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManager.cs
r2790 r2811 27 27 using System.IO; 28 28 using System.ComponentModel; 29 using UpdateService = HeuristicLab.PluginInfrastructure.PluginUpdateService;30 29 using System.Reflection; 31 30 … … 185 184 var pluginDescriptions = from name in pluginNames 186 185 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>(); 188 187 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)) { 190 189 var updateLocationMatchingPlugins = from desc in pluginDescriptions 191 190 from info in client.GetPlugins() 192 191 where desc.Name == info.Name 193 192 select info; 194 foreach ( UpdateService.PluginDescription info in updateLocationMatchingPlugins) {193 foreach (DeploymentService.PluginDescription info in updateLocationMatchingPlugins) { 195 194 // keep only the highest version of any plugin 196 195 var existingPlugin = matchingPlugins.Keys.FirstOrDefault(x => x.Name == info.Name); … … 207 206 var groupedInfos = matchingPlugins.GroupBy(x => x.Value); 208 207 foreach (var group in groupedInfos) { 209 using (var client = new UpdateService.UpdateClient(group.Key)) {208 using (var client = new DeploymentService.UpdateClient(group.Key)) { 210 209 foreach (var info in group) { 211 210 client.GetPlugin(info.Key); -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerConsole.cs
r2790 r2811 27 27 using System.IO; 28 28 using System.ComponentModel; 29 using UpdateService = HeuristicLab.PluginInfrastructure.PluginUpdateService; 29 30 30 31 31 namespace HeuristicLab.PluginInfrastructure.Advanced { … … 44 44 void installManager_PreUpdatePlugin(object sender, PluginInfrastructureCancelEventArgs e) { 45 45 Console.WriteLine("Following plugins are updated:"); 46 var infos = (IEnumerable< UpdateService.PluginDescription>)e.Entity;46 var infos = (IEnumerable<PluginDescription>)e.Entity; 47 47 foreach (var info in infos) { 48 48 Console.WriteLine(info.Name + " " + info.Version); … … 54 54 55 55 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) 57 57 Console.WriteLine("Updated: {0}", info.Name); 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.