/// <summary> /// Selects stack using the given workspace, and stack name. /// It returns an error if the given Stack does not exist. /// </summary> /// <param name="name">The name identifying the stack.</param> /// <param name="workspace">The Workspace the Stack was created from.</param> /// <param name="cancellationToken">A cancellation token.</param> /// <exception cref="StackNotFoundException">If a stack with the provided name does not exists.</exception> public static async Task <WorkspaceStack> SelectAsync( string name, Workspace workspace, CancellationToken cancellationToken = default) { var stack = new WorkspaceStack(name, workspace, WorkspaceStackInitMode.Select, cancellationToken); await stack._readyTask.ConfigureAwait(false); return(stack); }
internal WorkspaceStackState(WorkspaceStack workspaceStack) { this._workspaceStack = workspaceStack; }