Exemplo n.º 1
0
        private void OnVersionAddDeployment(object sender, RoutedEventArgs e)
        {
            StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
            string appId   = GetSelectedAppId();
            string version = GetSelectedVersion();
            AddNewDeploymentDialog dialog = new AddNewDeploymentDialog(appId, version);

            if (dialog.ShowDialog() == true)
            {
                AppIdentity appIdentity = new AppIdentity(appId, new Version(version));
                _deploymentConfig = _deploymentConfig.AddApplication(appIdentity, dialog.DeploymentId);
                SaveLocalDeploymentConfig(connectionInfo);
            }
        }
Exemplo n.º 2
0
 private void OnVersionAddDeployment(object sender, RoutedEventArgs e)
 {
     StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
     string appId = GetSelectedAppId();
     string version = GetSelectedVersion();
     AddNewDeploymentDialog dialog = new AddNewDeploymentDialog(appId, version);
     if (dialog.ShowDialog() == true)
     {
         AppIdentity appIdentity = new AppIdentity(appId, SemVersion.Parse(version));
         _deploymentConfig = _deploymentConfig.AddApplication(appIdentity, dialog.DeploymentId);
         SaveLocalDeploymentConfig(connectionInfo);
     }
 }