public ExportDefaultOmniSharpProjectSnapshotManagerAccessor( RemoteTextLoaderFactory remoteTextLoaderFactory, [ImportMany] IEnumerable <IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers, OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, OmniSharpWorkspace workspace) : base(remoteTextLoaderFactory, projectChangeTriggers, projectSnapshotManagerDispatcher, 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; }
public WrappedDocumentProcessedListener( RemoteTextLoaderFactory remoteTextLoaderFactory, OmniSharpDocumentProcessedListener innerDocumentProcessedListener) { if (remoteTextLoaderFactory is null) { throw new ArgumentNullException(nameof(remoteTextLoaderFactory)); } if (innerDocumentProcessedListener is null) { throw new ArgumentNullException(nameof(innerDocumentProcessedListener)); } _remoteTextLoaderFactory = remoteTextLoaderFactory; _innerDocumentProcessedListener = innerDocumentProcessedListener; }
public DefaultOmniSharpProjectSnapshotManager( ProjectSnapshotManagerBase projectSnapshotManager, RemoteTextLoaderFactory remoteTextLoaderFactory) { if (projectSnapshotManager == null) { throw new ArgumentNullException(nameof(projectSnapshotManager)); } if (remoteTextLoaderFactory is null) { throw new ArgumentNullException(nameof(remoteTextLoaderFactory)); } InternalProjectSnapshotManager = projectSnapshotManager; _remoteTextLoaderFactory = remoteTextLoaderFactory; InternalProjectSnapshotManager.Changed += ProjectSnapshotManager_Changed; }
public OmniSharpBackgroundDocumentGenerator( OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, RemoteTextLoaderFactory remoteTextLoaderFactory, IEnumerable <OmniSharpDocumentProcessedListener> documentProcessedListeners) { if (projectSnapshotManagerDispatcher is null) { throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); } if (remoteTextLoaderFactory is null) { throw new ArgumentNullException(nameof(remoteTextLoaderFactory)); } if (documentProcessedListeners is null) { throw new ArgumentNullException(nameof(documentProcessedListeners)); } var wrappedListeners = documentProcessedListeners.Select(listener => new WrappedDocumentProcessedListener(remoteTextLoaderFactory, listener)); _backgroundDocumentGenerator = new BackgroundDocumentGenerator(projectSnapshotManagerDispatcher.InternalDispatcher, wrappedListeners); }
public ExportOmniSharpBackgroundDocumentGenerator( OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, RemoteTextLoaderFactory remoteTextLoaderFactory, [ImportMany] IEnumerable <OmniSharpDocumentProcessedListener> documentProcessedListeners) : base(projectSnapshotManagerDispatcher, remoteTextLoaderFactory, documentProcessedListeners) { }
public DefaultRazorProjectService( ForegroundDispatcher foregroundDispatcher, HostDocumentFactory hostDocumentFactory, RemoteTextLoaderFactory remoteTextLoaderFactory, DocumentResolver documentResolver, ProjectResolver projectResolver, DocumentVersionCache documentVersionCache, FilePathNormalizer filePathNormalizer, ProjectSnapshotManagerAccessor projectSnapshotManagerAccessor, ILoggerFactory loggerFactory) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (hostDocumentFactory == null) { throw new ArgumentNullException(nameof(hostDocumentFactory)); } if (remoteTextLoaderFactory == null) { throw new ArgumentNullException(nameof(remoteTextLoaderFactory)); } if (documentResolver == null) { throw new ArgumentNullException(nameof(documentResolver)); } if (projectResolver == null) { throw new ArgumentNullException(nameof(projectResolver)); } if (documentVersionCache == null) { throw new ArgumentNullException(nameof(documentVersionCache)); } if (filePathNormalizer == null) { throw new ArgumentNullException(nameof(filePathNormalizer)); } if (projectSnapshotManagerAccessor == null) { throw new ArgumentNullException(nameof(projectSnapshotManagerAccessor)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } _foregroundDispatcher = foregroundDispatcher; _hostDocumentFactory = hostDocumentFactory; _remoteTextLoaderFactory = remoteTextLoaderFactory; _documentResolver = documentResolver; _projectResolver = projectResolver; _documentVersionCache = documentVersionCache; _filePathNormalizer = filePathNormalizer; _projectSnapshotManagerAccessor = projectSnapshotManagerAccessor; _logger = loggerFactory.CreateLogger <DefaultRazorProjectService>(); }
public ExportOmniSharpBackgroundDocumentGenerator( OmniSharpForegroundDispatcher foregroundDispatcher, RemoteTextLoaderFactory remoteTextLoaderFactory, [ImportMany] IEnumerable <OmniSharpDocumentProcessedListener> documentProcessedListeners) : base(foregroundDispatcher, remoteTextLoaderFactory, documentProcessedListeners) { }