Beispiel #1
0
        private async void OnPublishToBlob(object sender, RoutedEventArgs e)
        {
            BusyWindow busyWindow = new BusyWindow {
                Message = "Please wait..\n\n" + "The DeploymentConfig.json file is being uploaded to blob storage"
            };

            busyWindow.Show();
            StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
            IDeploymentRepository        connection     = _deploymentRepositoryManager.GetRepository(connectionInfo);
            await connection.PublishDeploymentConfig(_deploymentConfig);

            busyWindow.Close();
        }
Beispiel #2
0
        private async Task AddApplication(AppIdentity appIdentity, string deploymentId, string binariesPath)
        {
            StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
            IDeploymentRepository        repository     = _deploymentRepositoryManager.GetRepository(connectionInfo);
            BusyWindow busyWindow = new BusyWindow {
                Message = "Please wait..\n\n" + "The binaries are being uploaded to blob storage"
            };

            busyWindow.Show();
            await repository.UploadApplicationBinaries(appIdentity, binariesPath, ConflictResolutionMode.DoNothingIfBinariesExist);

            busyWindow.Close();
            _deploymentConfig = _deploymentConfig.AddApplication(appIdentity, deploymentId);
            SaveLocalDeploymentConfig(connectionInfo);
        }
Beispiel #3
0
 private async void OnPublishToBlob(object sender, RoutedEventArgs e)
 {
     BusyWindow busyWindow = new BusyWindow{Message = "Please wait..\n\n" + "The DeploymentConfig.json file is being uploaded to blob storage"};
     busyWindow.Show();
     StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
     IDeploymentRepository connection = _deploymentRepositoryManager.GetRepository(connectionInfo);
     await connection.PublishDeploymentConfig(_deploymentConfig);
     busyWindow.Close();
 }
Beispiel #4
0
 private async Task AddApplication(AppIdentity appIdentity, string deploymentId, string binariesPath)
 {
     StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
     IDeploymentRepository repository = _deploymentRepositoryManager.GetRepository(connectionInfo);
     BusyWindow busyWindow = new BusyWindow{Message = "Please wait..\n\n" + "The binaries are being uploaded to blob storage"};
     busyWindow.Show();
     await repository.UploadApplicationBinaries(appIdentity, binariesPath, ConflictResolutionMode.DoNothingIfBinariesExist);
     busyWindow.Close();
     _deploymentConfig = _deploymentConfig.AddApplication(appIdentity, deploymentId);
     SaveLocalDeploymentConfig(connectionInfo);
 }