static void InitializeTriggers(
     DefaultProjectSnapshotManager snapshotManager,
     ProjectSnapshotChangeTrigger[] triggers)
 {
     for (var i = 0; i < triggers.Length; i++)
     {
         triggers[i].Initialize(snapshotManager);
     }
 }
Exemple #2
0
        public ProjectSnapshotWorkerQueue(ForegroundDispatcher foregroundDispatcher, DefaultProjectSnapshotManager projectManager, ProjectSnapshotWorker projectWorker)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }

            if (projectWorker == null)
            {
                throw new ArgumentNullException(nameof(projectWorker));
            }

            _foregroundDispatcher = foregroundDispatcher;
            _projectManager       = projectManager;
            _projectWorker        = projectWorker;

            _projects = new Dictionary <string, ProjectSnapshotUpdateContext>(FilePathComparer.Instance);
        }
Exemple #3
0
        public ProjectSnapshotWorkerQueue(ForegroundDispatcher foregroundDispatcher, DefaultProjectSnapshotManager projectManager, ProjectSnapshotWorker projectWorker)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }

            if (projectWorker == null)
            {
                throw new ArgumentNullException(nameof(projectWorker));
            }

            _foregroundDispatcher = foregroundDispatcher;
            _projectManager       = projectManager;
            _projectWorker        = projectWorker;

            _projects = new Dictionary <ProjectId, Project>();
        }