Exemplo n.º 1
0
        private static async Task DeleteWorkspaceAsync()
        {
            Console2.WriteStartHeader("Delete Workspace");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            Console.WriteLine("Would you like to delete the created workspace (type 'y' or 'n'):");
            string response = Console.ReadLine();

            if (response == null || response.ToLower().Equals("y"))
            {
                WorkspaceHelper workspaceHelper = new WorkspaceHelper(_connectionManager.RsapiClient);

                // Delete workspace
                await workspaceHelper.DeleteWorkspaceAsync(_workspaceArtifactId);
            }

            stopwatch.Stop();
            DisplayTimeElapsed(stopwatch.Elapsed);
        }