public override void Load() { IsLoadingHostedService = true; AzureManagementModel model = new AzureManagementModel(); model.GetHostedService(SubscriptionManager.CurrentSubscription, ServiceName, GetHostedServiceCallback); }
public void GetHostedServicesForSubscription(string subscriptionId, byte[] certificate, string certificatePassword, Action<HostedServicesModel> callback) { string url = "https://management.core.windows.net/" + subscriptionId + "/services/hostedservices"; AzureManagementModel.InvokeRequestState<HostedServicesModel> state = new AzureManagementModel.InvokeRequestState<HostedServicesModel> { FinalCallback = callback }; AzureManagementModel azureModel = new AzureManagementModel(); azureModel.InvokeRequest<HostedServicesModel>(url, certificate, certificatePassword, null, state, GetHostedServicesForSubscriptionCallback); }
public override void Load() { IsLoadingHostedServices = true; AzureManagementModel model = new AzureManagementModel(); byte[] certificate = SubscriptionManager.GetSubscriptionCertificate(SubscriptionId); try { model.GetHostedServicesForSubscription(SubscriptionId, certificate, "abc123", HostedServiceListCallback); } catch { CurrentDispatcher.BeginInvoke(() => { MessageBoxResult result = MessageBox.Show("Tap here to continue", "Subscription Details could not be retrieved due to an error.", MessageBoxButton.OKCancel); }); } }
public override void Load() { IsLoadingDeploymentList = true; AzureManagementModel model = new AzureManagementModel(); try { model.GetDeploymentsForService(SubscriptionManager.CurrentSubscription, ServiceName, GetDeploymentsForServiceCallback); } catch { CurrentDispatcher.BeginInvoke(() => { MessageBoxResult result = MessageBox.Show("Tap here to continue", "Subscription Details could not be retrieved due to an error.", MessageBoxButton.OKCancel); }); } }
private void RetrieveSubscriptionName() { // Tell the user we're doing something... // SubscriptionName = "loading..."; // Create a request for the intermediate. // AzureManagementModel model = new AzureManagementModel(); model.GetSubscriptionInformation(SubscriptionId, certificateData, CertificatePassword, SubscriptionInformationRetrieved); }