Пример #1
0
        private bool SolutionSizeAboveThreshold(Solution solution)
        {
            if (_testing)
            {
                return(true);
            }

            var workspace = solution.Workspace;

            if (workspace.Kind == WorkspaceKind.RemoteWorkspace ||
                workspace.Kind == WorkspaceKind.RemoteTemporaryWorkspace)
            {
                // Storage is always available in the remote server.
                return(true);
            }

            if (_solutionSizeTracker == null)
            {
                return(false);
            }

            var size      = _solutionSizeTracker.GetSolutionSize(solution.Workspace, solution.Id);
            var threshold = this.OptionService.GetOption(StorageOptions.SolutionSizeThreshold);

            return(size >= threshold);
        }
Пример #2
0
        private bool SolutionSizeAboveThreshold(Solution solution)
        {
            if (_testing)
            {
                return(true);
            }

            if (_solutionSizeTracker == null)
            {
                return(false);
            }

            var size = _solutionSizeTracker.GetSolutionSize(solution.Workspace, solution.Id);

            return(size > SolutionSizeThreshold);
        }
Пример #3
0
        private bool SolutionSizeAboveThreshold(Solution solution)
        {
            if (_testing)
            {
                return(true);
            }

            if (_solutionSizeTracker == null)
            {
                return(false);
            }

            var size      = _solutionSizeTracker.GetSolutionSize(solution.Workspace, solution.Id);
            var threshold = this.OptionService.GetOption(StorageOptions.SolutionSizeThreshold);

            return(size >= threshold);
        }