Exemplo n.º 1
0
 public DefaultRazorProjectHost(
     IUnconfiguredProjectCommonServices commonServices,
     [Import(typeof(VisualStudioWorkspace))] Workspace workspace,
     RazorProjectChangePublisher razorProjectChangePublisher)
     : base(commonServices, workspace, razorProjectChangePublisher)
 {
 }
Exemplo n.º 2
0
 // Internal for testing
 internal DefaultRazorProjectHost(
     IUnconfiguredProjectCommonServices commonServices,
     Workspace workspace,
     RazorProjectChangePublisher razorProjectChangePublisher,
     ProjectSnapshotManagerBase projectManager)
     : base(commonServices, workspace, razorProjectChangePublisher, projectManager)
 {
 }
Exemplo n.º 3
0
        // 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;
        }
Exemplo n.º 4
0
        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;
        }