Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.PluginInfrastructure/3.3/Advanced/InstallationManager.cs
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.PluginInfrastructure/3.3/Advanced/InstallationManager.cs
r5445 r6760 98 98 /// </summary> 99 99 /// <param name="plugins"></param> 100 public void Install(IEnumerable<IPluginDescription> plugins ) {100 public void Install(IEnumerable<IPluginDescription> plugins, out bool cancelled) { 101 101 var args = new PluginInfrastructureCancelEventArgs(plugins); 102 102 OnPreInstall(args); 103 103 if (!args.Cancel) { 104 cancelled = false; 104 105 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 105 106 try { … … 123 124 throw new InstallationManagerException("General communication exception in connection to server.", e); 124 125 } 126 } else { 127 cancelled = true; 125 128 } 126 129 } … … 130 133 /// </summary> 131 134 /// <param name="plugins"></param> 132 public void Update(IEnumerable<IPluginDescription> plugins ) {135 public void Update(IEnumerable<IPluginDescription> plugins, out bool cancelled) { 133 136 PluginInfrastructureCancelEventArgs args = new PluginInfrastructureCancelEventArgs(plugins); 134 137 OnPreUpdate(args); 135 138 if (!args.Cancel) { 139 cancelled = false; 136 140 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 137 141 try { … … 155 159 throw new InstallationManagerException("General communication exception in connection to server.", e); 156 160 } 161 } else { 162 cancelled = true; 157 163 } 158 164 }
Note: See TracChangeset
for help on using the changeset viewer.