示例#1
0
 public TestMonitorProjectConfigurationFilePathEndpoint(
     ForegroundDispatcher foregroundDispatcher,
     FilePathNormalizer filePathNormalizer,
     WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver,
     IEnumerable <IProjectConfigurationFileChangeListener> listeners) : this(
         fileChangeDetectorFactory : null,
         foregroundDispatcher,
         filePathNormalizer,
         workspaceDirectoryPathResolver,
         listeners)
 {
 }
示例#2
0
 public TestMonitorProjectConfigurationFilePathEndpoint(
     Func <IFileChangeDetector> fileChangeDetectorFactory,
     ForegroundDispatcher foregroundDispatcher,
     FilePathNormalizer filePathNormalizer,
     WorkspaceDirectoryPathResolver workspaceDirectoryPathResolver,
     IEnumerable <IProjectConfigurationFileChangeListener> listeners) : base(
         foregroundDispatcher,
         filePathNormalizer,
         workspaceDirectoryPathResolver,
         listeners)
 {
     _fileChangeDetectorFactory = fileChangeDetectorFactory ?? (() => Mock.Of <IFileChangeDetector>());
 }
示例#3
0
 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)
 {
 }
示例#5
0
        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();
        }