public DefaultImportDocumentManager( ForegroundDispatcher foregroundDispatcher, ErrorReporter errorReporter, FileChangeTrackerFactory fileChangeTrackerFactory, RazorTemplateEngineFactoryService templateEngineFactoryService) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (errorReporter == null) { throw new ArgumentNullException(nameof(errorReporter)); } if (fileChangeTrackerFactory == null) { throw new ArgumentNullException(nameof(fileChangeTrackerFactory)); } if (templateEngineFactoryService == null) { throw new ArgumentNullException(nameof(templateEngineFactoryService)); } _foregroundDispatcher = foregroundDispatcher; _errorReporter = errorReporter; _fileChangeTrackerFactory = fileChangeTrackerFactory; _templateEngineFactoryService = templateEngineFactoryService; _importTrackerCache = new Dictionary <string, ImportTracker>(StringComparer.OrdinalIgnoreCase); }
public DefaultImportDocumentManager( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, ErrorReporter errorReporter, FileChangeTrackerFactory fileChangeTrackerFactory) { if (projectSnapshotManagerDispatcher is null) { throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); } if (errorReporter is null) { throw new ArgumentNullException(nameof(errorReporter)); } if (fileChangeTrackerFactory is null) { throw new ArgumentNullException(nameof(fileChangeTrackerFactory)); } _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher; _errorReporter = errorReporter; _fileChangeTrackerFactory = fileChangeTrackerFactory; _importTrackerCache = new Dictionary <string, ImportTracker>(StringComparer.OrdinalIgnoreCase); }