Free cookie consent management tool by TermsFeed Policy Generator

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/Azure
Files:
2 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
Note: See TracChangeset for help on using the changeset viewer.