Inheritance: IWorkspaceService
Example #1
0
        public DefaultVisualStudioDocumentTrackerFactory(
            ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
            JoinableTaskContext joinableTaskContext,
            ProjectSnapshotManager projectManager,
            WorkspaceEditorSettings workspaceEditorSettings,
            ProjectPathProvider projectPathProvider,
            ITextDocumentFactoryService textDocumentFactory,
            ImportDocumentManager importDocumentManager,
            Workspace workspace)
        {
            if (projectSnapshotManagerDispatcher is null)
            {
                throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher));
            }

            if (projectManager is null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }

            if (workspaceEditorSettings is null)
            {
                throw new ArgumentNullException(nameof(workspaceEditorSettings));
            }

            if (projectPathProvider is null)
            {
                throw new ArgumentNullException(nameof(projectPathProvider));
            }

            if (textDocumentFactory is null)
            {
                throw new ArgumentNullException(nameof(textDocumentFactory));
            }

            if (importDocumentManager is null)
            {
                throw new ArgumentNullException(nameof(importDocumentManager));
            }

            if (workspace is null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher;
            _joinableTaskContext     = joinableTaskContext;
            _projectManager          = projectManager;
            _workspaceEditorSettings = workspaceEditorSettings;
            _projectPathProvider     = projectPathProvider;
            _textDocumentFactory     = textDocumentFactory;
            _importDocumentManager   = importDocumentManager;
            _workspace = workspace;
        }
        public DefaultVisualStudioDocumentTrackerFactory(
            ForegroundDispatcher foregroundDispatcher,
            ProjectSnapshotManager projectManager,
            WorkspaceEditorSettings workspaceEditorSettings,
            ProjectPathProvider projectPathProvider,
            ITextDocumentFactoryService textDocumentFactory,
            ImportDocumentManager importDocumentManager,
            Workspace workspace)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }

            if (workspaceEditorSettings == null)
            {
                throw new ArgumentNullException(nameof(workspaceEditorSettings));
            }

            if (projectPathProvider == null)
            {
                throw new ArgumentNullException(nameof(projectPathProvider));
            }

            if (textDocumentFactory == null)
            {
                throw new ArgumentNullException(nameof(textDocumentFactory));
            }

            if (importDocumentManager == null)
            {
                throw new ArgumentNullException(nameof(importDocumentManager));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _foregroundDispatcher    = foregroundDispatcher;
            _projectManager          = projectManager;
            _workspaceEditorSettings = workspaceEditorSettings;
            _projectPathProvider     = projectPathProvider;
            _textDocumentFactory     = textDocumentFactory;
            _importDocumentManager   = importDocumentManager;
            _workspace = workspace;
        }