Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7608


Ignore:
Timestamp:
03/13/12 13:57:24 (12 years ago)
Author:
spimming
Message:

#1680:

  • New dialog to delete hosted services
  • Delete deployments in parallel
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  
    105105      <DependentUpon>CloudResourcesView.cs</DependentUpon>
    106106    </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>
    107113    <Compile Include="Views\DeleteDeploymentView.cs">
    108114      <SubType>Form</SubType>
     
    222228    <EmbeddedResource Include="Views\CloudResourcesView.resx">
    223229      <DependentUpon>CloudResourcesView.cs</DependentUpon>
     230    </EmbeddedResource>
     231    <EmbeddedResource Include="Views\DeleteHostedServiceView.resx">
     232      <DependentUpon>DeleteHostedServiceView.cs</DependentUpon>
    224233    </EmbeddedResource>
    225234    <EmbeddedResource Include="Views\DeleteDeploymentView.resx">
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/CloudResourcesView.cs

    r7598 r7608  
    325325          CloudManagerClient.Instance.Delete((Subscription)obj);
    326326        } 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          }
    328331        } else if (obj is Deployment && objParent is HostedService) {
    329332          HostedService hs = (HostedService)objParent;
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/DeleteDeploymentView.cs

    r7598 r7608  
    11using System;
    22using System.ComponentModel;
     3using System.Threading.Tasks;
    34using System.Windows.Forms;
    45using HeuristicLab.Clients.Hive.CloudManager.Azure;
     
    5455
    5556      if (DeleteHostedService) {
    56         foreach (Deployment d in hs.Deployments) {
     57        Parallel.ForEach(hs.Deployments, d => {
    5758          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        });
    6061        CloudManagerClient.Instance.AzureProvider.DeleteHostedService(hs.Subscription, hs.ServiceName);
    6162      } else {
Note: See TracChangeset for help on using the changeset viewer.