Exemple #1
0
        /// <summary>
        /// Set's the current solution of this workspace. This method does not raise a workspace change event.
        /// </summary>
        protected Solution SetCurrentSolution(Solution solution)
        {
            using (this.stateLock.DisposableWrite())
            {
                Solution curSol = this.latestSolution;

                Solution sol = solution;
                solution = sol.WithNewWorkspace(this, curSol.WorkspaceVersion + 1);

                this.latestSolution = solution;
            }

            return(solution);
        }