Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7421


Ignore:
Timestamp:
01/27/12 14:33:29 (13 years ago)
Author:
spimming
Message:

#1680:

  • GetOperationStatus method added
  • Check if affinity group is not null
Location:
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Azure/Constants.cs

    r7402 r7421  
    7373    public const string URISpecificDeploymentConfigurationFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deployments/{2}/?comp=config";
    7474    public const string URIChangeDeploymentStatusFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deployments/{2}/?comp=status";
     75    public const string URIGetOperationStatusFormat = "https://management.core.windows.net/{0}/operations/{1}";
    7576
    7677    #endregion
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Azure/ServiceManagementOperation.cs

    r7402 r7421  
    232232    }
    233233
     234    public static string GetOperationStatus(string subscriptionId, string thumbprint, string requestId) {
     235      string uri = string.Format(Constants.URIGetOperationStatusFormat, subscriptionId, requestId);
     236      ServiceWebRequest operation = new ServiceWebRequest(thumbprint);
     237      XDocument operationStatus = operation.Invoke(uri);
     238      string status = operationStatus.Element(wa + "Operation").Element(wa + "Status").Value;
     239      return status;
     240    }
     241
    234242    #endregion
    235243
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/AddAzureServiceDialog.cs

    r7387 r7421  
    183183          }
    184184
    185           properties.AffinityGroup = ((AffinityGroup)cmbAffinityGroup.SelectedItem).Name;
     185          if (cmbAffinityGroup.SelectedItem != null) {
     186            properties.AffinityGroup = ((AffinityGroup)cmbAffinityGroup.SelectedItem).Name;
     187          }
    186188          properties.Label = tbLabel.Text;
    187189          properties.Location = (string)cmbLocation.SelectedItem;
Note: See TracChangeset for help on using the changeset viewer.