public TestMonitorProjectConfigurationFilePathEndpoint( ForegroundDispatcher foregroundDispatcher, FilePathNormalizer filePathNormalizer, WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver, IEnumerable <IProjectConfigurationFileChangeListener> listeners) : this( fileChangeDetectorFactory : null, foregroundDispatcher, filePathNormalizer, workspaceDirectoryPathResolver, listeners) { }
public TestMonitorProjectConfigurationFilePathEndpoint( Func <IFileChangeDetector> fileChangeDetectorFactory, ForegroundDispatcher foregroundDispatcher, FilePathNormalizer filePathNormalizer, WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver, IEnumerable <IProjectConfigurationFileChangeListener> listeners) : base( foregroundDispatcher, filePathNormalizer, workspaceDirectoryPathResolver, listeners) { _fileChangeDetectorFactory = fileChangeDetectorFactory ?? (() => Mock.Of <IFileChangeDetector>()); }
public TestMonitorProjectConfigurationFilePathEndpoint( Func <IFileChangeDetector> fileChangeDetectorFactory, ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, FilePathNormalizer filePathNormalizer, WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver, IEnumerable <IProjectConfigurationFileChangeListener> listeners) : base( projectSnapshotManagerDispatcher, filePathNormalizer, workspaceDirectoryPathResolver, listeners) { _fileChangeDetectorFactory = fileChangeDetectorFactory ?? (() => Mock.Of <IFileChangeDetector>(MockBehavior.Strict)); }
public TestMonitorProjectConfigurationFilePathEndpoint( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, FilePathNormalizer filePathNormalizer, WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver, IEnumerable <IProjectConfigurationFileChangeListener> listeners, ILoggerFactory loggerFactory) : this( fileChangeDetectorFactory : null, projectSnapshotManagerDispatcher, filePathNormalizer, workspaceDirectoryPathResolver, listeners, loggerFactory) { }
public RazorFileChangeDetectorManager( WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver, IEnumerable <IFileChangeDetector> fileChangeDetectors) { if (workspaceDirectoryPathResolver is null) { throw new ArgumentNullException(nameof(workspaceDirectoryPathResolver)); } if (fileChangeDetectors is null) { throw new ArgumentNullException(nameof(fileChangeDetectors)); } _workspaceDirectoryPathResolver = workspaceDirectoryPathResolver; _fileChangeDetectors = fileChangeDetectors.ToArray(); }