public DefaultRazorProjectHost( IUnconfiguredProjectCommonServices commonServices, [Import(typeof(VisualStudioWorkspace))] Workspace workspace, RazorProjectChangePublisher razorProjectChangePublisher) : base(commonServices, workspace, razorProjectChangePublisher) { }
// Internal for testing internal DefaultRazorProjectHost( IUnconfiguredProjectCommonServices commonServices, Workspace workspace, RazorProjectChangePublisher razorProjectChangePublisher, ProjectSnapshotManagerBase projectManager) : base(commonServices, workspace, razorProjectChangePublisher, projectManager) { }
// Internal for testing protected RazorProjectHostBase( IUnconfiguredProjectCommonServices commonServices, Workspace workspace, RazorProjectChangePublisher razorProjectChangePublisher, ProjectSnapshotManagerBase projectManager) : this(commonServices, workspace, razorProjectChangePublisher) { if (projectManager == null) { throw new ArgumentNullException(nameof(projectManager)); } _projectManager = projectManager; }
public RazorProjectHostBase( IUnconfiguredProjectCommonServices commonServices, [Import(typeof(VisualStudioWorkspace))] Workspace workspace, RazorProjectChangePublisher razorProjectChangePublisher) : base(commonServices.ThreadingService.JoinableTaskContext) { if (commonServices == null) { throw new ArgumentNullException(nameof(commonServices)); } if (workspace == null) { throw new ArgumentNullException(nameof(workspace)); } CommonServices = commonServices; _workspace = workspace; _lock = new AsyncSemaphore(initialCount: 1); _currentDocuments = new Dictionary <string, HostDocument>(FilePathComparer.Instance); _razorProjectChangePublisher = razorProjectChangePublisher; }