public BackgroundDocumentProcessedPublisher( OmniSharpForegroundDispatcher foregroundDispatcher, OmniSharpWorkspace workspace, ILoggerFactory loggerFactory) { if (foregroundDispatcher is null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (workspace is null) { throw new ArgumentNullException(nameof(workspace)); } if (loggerFactory is null) { throw new ArgumentNullException(nameof(loggerFactory)); } _foregroundDispatcher = foregroundDispatcher; _workspace = workspace; _logger = loggerFactory.CreateLogger <BackgroundDocumentProcessedPublisher>(); _workspaceChangedLock = new object(); _workspace.WorkspaceChanged += Workspace_WorkspaceChanged; }
public ExportDefaultOmniSharpProjectSnapshotManagerAccessor( RemoteTextLoaderFactory remoteTextLoaderFactory, [ImportMany] IEnumerable <IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers, OmniSharpForegroundDispatcher foregroundDispatcher, OmniSharpWorkspace workspace) : base(remoteTextLoaderFactory, projectChangeTriggers, foregroundDispatcher, workspace) { }
public DefaultOmniSharpProjectSnapshotManagerAccessor( RemoteTextLoaderFactory remoteTextLoaderFactory, IEnumerable <IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers, OmniSharpForegroundDispatcher foregroundDispatcher, Workspace workspace) { if (remoteTextLoaderFactory is null) { throw new ArgumentNullException(nameof(remoteTextLoaderFactory)); } if (projectChangeTriggers == null) { throw new ArgumentNullException(nameof(projectChangeTriggers)); } if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (workspace == null) { throw new ArgumentNullException(nameof(workspace)); } _remoteTextLoaderFactory = remoteTextLoaderFactory; _projectChangeTriggers = projectChangeTriggers; _foregroundDispatcher = foregroundDispatcher; _workspace = workspace; }
// Internal for testing internal TagHelperRefreshTrigger( OmniSharpForegroundDispatcher foregroundDispatcher, Workspace omniSharpWorkspace, OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (omniSharpWorkspace == null) { throw new ArgumentNullException(nameof(omniSharpWorkspace)); } if (workspaceStateGenerator == null) { throw new ArgumentNullException(nameof(workspaceStateGenerator)); } _foregroundDispatcher = foregroundDispatcher; _omniSharpWorkspace = omniSharpWorkspace; _workspaceStateGenerator = workspaceStateGenerator; _deferredUpdates = new Dictionary <string, Task>(); }
public TagHelperRefreshTrigger( OmniSharpForegroundDispatcher foregroundDispatcher, OmniSharpWorkspace omniSharpWorkspace, OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator) : this(foregroundDispatcher, (Workspace)omniSharpWorkspace, workspaceStateGenerator) { }
public DefaultProjectInstanceEvaluator(OmniSharpForegroundDispatcher foregroundDispatcher) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } _foregroundDispatcher = foregroundDispatcher; }
public ComponentRefreshTrigger( OmniSharpForegroundDispatcher foregroundDispatcher, FilePathNormalizer filePathNormalizer, ProjectInstanceEvaluator projectInstanceEvaluator, UpdateBufferDispatcher updateBufferDispatcher, ILoggerFactory loggerFactory) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (filePathNormalizer == null) { throw new ArgumentNullException(nameof(filePathNormalizer)); } if (projectInstanceEvaluator == null) { throw new ArgumentNullException(nameof(projectInstanceEvaluator)); } if (updateBufferDispatcher == null) { throw new ArgumentNullException(nameof(updateBufferDispatcher)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } _foregroundDispatcher = foregroundDispatcher; _filePathNormalizer = filePathNormalizer; _projectInstanceEvaluator = projectInstanceEvaluator; _updateBufferDispatcher = updateBufferDispatcher; _logger = loggerFactory.CreateLogger <ComponentRefreshTrigger>(); _deferredRefreshTasks = new Dictionary <string, Task>(FilePathComparer.Instance); _pendingOutputRefreshes = new Dictionary <string, OutputRefresh>(FilePathComparer.Instance); _lastSeenCompileItems = new Dictionary <string, bool>(FilePathComparer.Instance); }
public DefaultOmniSharpProjectSnapshotManagerAccessor( [ImportMany] IEnumerable <IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers, OmniSharpForegroundDispatcher foregroundDispatcher, Workspace workspace) { if (projectChangeTriggers == null) { throw new ArgumentNullException(nameof(projectChangeTriggers)); } if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (workspace == null) { throw new ArgumentNullException(nameof(workspace)); } _projectChangeTriggers = projectChangeTriggers; _foregroundDispatcher = foregroundDispatcher; _workspace = workspace; }
public ExportOmniSharpBackgroundDocumentGenerator( OmniSharpForegroundDispatcher foregroundDispatcher, RemoteTextLoaderFactory remoteTextLoaderFactory, [ImportMany] IEnumerable <OmniSharpDocumentProcessedListener> documentProcessedListeners) : base(foregroundDispatcher, remoteTextLoaderFactory, documentProcessedListeners) { }
public ExportOmniSharpProjectWorkspaceStateGenerator(OmniSharpForegroundDispatcher foregroundDispatcher) : base(foregroundDispatcher) { }
public ExportOmniSharpWorkspaceProjectStateChangeDetector( OmniSharpForegroundDispatcher foregroundDispatcher, OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator) : base(foregroundDispatcher, workspaceStateGenerator) { }