コード例 #1
0
 public ExportDefaultOmniSharpProjectSnapshotManagerAccessor(
     RemoteTextLoaderFactory remoteTextLoaderFactory,
     [ImportMany] IEnumerable <IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers,
     OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
     OmniSharpWorkspace workspace) : base(remoteTextLoaderFactory, projectChangeTriggers, projectSnapshotManagerDispatcher, workspace)
 {
 }
        public BackgroundDocumentProcessedPublisher(
            OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
            OmniSharpWorkspace workspace,
            ILoggerFactory loggerFactory)
        {
            if (projectSnapshotManagerDispatcher is null)
            {
                throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher));
            }

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

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

            _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher;
            _workspace            = workspace;
            _logger               = loggerFactory.CreateLogger <BackgroundDocumentProcessedPublisher>();
            _workspaceChangedLock = new object();

            _workspace.WorkspaceChanged += Workspace_WorkspaceChanged;
        }
コード例 #3
0
        // Internal for testing
        internal TagHelperRefreshTrigger(
            OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
            Workspace omniSharpWorkspace,
            OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator)
        {
            if (projectSnapshotManagerDispatcher == null)
            {
                throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher));
            }

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

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

            _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher;
            _omniSharpWorkspace      = omniSharpWorkspace;
            _workspaceStateGenerator = workspaceStateGenerator;
            _deferredUpdates         = new Dictionary <string, Task>();
        }
コード例 #4
0
 public TagHelperRefreshTrigger(
     OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
     OmniSharpWorkspace omniSharpWorkspace,
     OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator) :
     this(projectSnapshotManagerDispatcher, (Workspace)omniSharpWorkspace, workspaceStateGenerator)
 {
 }
コード例 #5
0
        public DefaultOmniSharpProjectSnapshotManagerAccessor(
            RemoteTextLoaderFactory remoteTextLoaderFactory,
            IEnumerable <IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers,
            OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
            Workspace workspace)
        {
            if (remoteTextLoaderFactory is null)
            {
                throw new ArgumentNullException(nameof(remoteTextLoaderFactory));
            }

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

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

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

            _remoteTextLoaderFactory          = remoteTextLoaderFactory;
            _projectChangeTriggers            = projectChangeTriggers;
            _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher;
            _workspace = workspace;
        }
コード例 #6
0
 public ExportOmniSharpBackgroundDocumentGenerator(
     OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
     RemoteTextLoaderFactory remoteTextLoaderFactory,
     [ImportMany] IEnumerable <OmniSharpDocumentProcessedListener> documentProcessedListeners) : base(projectSnapshotManagerDispatcher, remoteTextLoaderFactory, documentProcessedListeners)
 {
 }
コード例 #7
0
 public ExportOmniSharpProjectWorkspaceStateGenerator(OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher) : base(projectSnapshotManagerDispatcher)
 {
 }
コード例 #8
0
 public ExportOmniSharpWorkspaceProjectStateChangeDetector(
     OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
     OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator) : base(projectSnapshotManagerDispatcher, workspaceStateGenerator)
 {
 }
 public DefaultOmniSharpProjectSnapshotManagerDispatcher()
 {
     InternalDispatcher = new OmniSharpProjectSnapshotManagerDispatcher();
 }