Esempio n. 1
0
        private static async Task CleanupWorkspacesAsync()
        {
            Console2.WriteStartHeader("Clean Up Workspaces");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            WorkspaceHelper workspaceHelper = new WorkspaceHelper(_connectionManager.RsapiClient);
            await workspaceHelper.CleanupWorkspacesAsync();

            stopwatch.Stop();
            DisplayTimeElapsed(stopwatch.Elapsed);
        }
Esempio n. 2
0
        private static async Task CreateWorkspaceAsync()
        {
            Console2.WriteStartHeader("Create Workspace");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            WorkspaceHelper workspaceHelper = new WorkspaceHelper(_connectionManager.RsapiClient);

            _workspaceArtifactId = await workspaceHelper.QueryTemplateAndCreateWorkspaceAsync();

            // Create the Responsive - E2E Field
            await workspaceHelper.CreateResponsiveFieldAsync(_workspaceArtifactId);

            stopwatch.Stop();
            DisplayTimeElapsed(stopwatch.Elapsed);
        }
Esempio n. 3
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);
        }