Changeset 7608
- Timestamp:
- 03/13/12 13:57:24 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/HeuristicLab.Clients.Hive.CloudManager-3.3.csproj
r7598 r7608 105 105 <DependentUpon>CloudResourcesView.cs</DependentUpon> 106 106 </Compile> 107 <Compile Include="Views\DeleteHostedServiceView.cs"> 108 <SubType>Form</SubType> 109 </Compile> 110 <Compile Include="Views\DeleteHostedServiceView.Designer.cs"> 111 <DependentUpon>DeleteHostedServiceView.cs</DependentUpon> 112 </Compile> 107 113 <Compile Include="Views\DeleteDeploymentView.cs"> 108 114 <SubType>Form</SubType> … … 222 228 <EmbeddedResource Include="Views\CloudResourcesView.resx"> 223 229 <DependentUpon>CloudResourcesView.cs</DependentUpon> 230 </EmbeddedResource> 231 <EmbeddedResource Include="Views\DeleteHostedServiceView.resx"> 232 <DependentUpon>DeleteHostedServiceView.cs</DependentUpon> 224 233 </EmbeddedResource> 225 234 <EmbeddedResource Include="Views\DeleteDeploymentView.resx"> -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/CloudResourcesView.cs
r7598 r7608 325 325 CloudManagerClient.Instance.Delete((Subscription)obj); 326 326 } else if (obj is HostedService) { 327 // nothing to do so far 327 HostedService hs = (HostedService)obj; 328 using (var form = new DeleteHostedServiceView(hs)) { 329 form.ShowDialog(); 330 } 328 331 } else if (obj is Deployment && objParent is HostedService) { 329 332 HostedService hs = (HostedService)objParent; -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/DeleteDeploymentView.cs
r7598 r7608 1 1 using System; 2 2 using System.ComponentModel; 3 using System.Threading.Tasks; 3 4 using System.Windows.Forms; 4 5 using HeuristicLab.Clients.Hive.CloudManager.Azure; … … 54 55 55 56 if (DeleteHostedService) { 56 foreach (Deployment d in hs.Deployments){57 Parallel.ForEach(hs.Deployments, d => { 57 58 string requestId = CloudManagerClient.Instance.AzureProvider.DeleteDeployment(hs.Subscription, hs.ServiceName, d.Name); 58 Constants.OperationResult result = CloudManagerClient.Instance.AzureProvider.PollGetOperationStatus(hs.Subscription, requestId, 5, 30);59 } 59 Constants.OperationResult result = CloudManagerClient.Instance.AzureProvider.PollGetOperationStatus(hs.Subscription, requestId, 4, 30); 60 }); 60 61 CloudManagerClient.Instance.AzureProvider.DeleteHostedService(hs.Subscription, hs.ServiceName); 61 62 } else {
Note: See TracChangeset
for help on using the changeset viewer.