Esempio n. 1
0
        public ProjectSnapshotSynchronizationServiceFactory(
            ProxyAccessor proxyAccessor,
            JoinableTaskContext joinableTaskContext,
            LiveShareSessionAccessor liveShareSessionAccessor,
            [Import(typeof(VisualStudioWorkspace))] Workspace workspace)
        {
            if (proxyAccessor == null)
            {
                throw new ArgumentNullException(nameof(proxyAccessor));
            }

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

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

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

            _proxyAccessor            = proxyAccessor;
            _joinableTaskContext      = joinableTaskContext;
            _liveShareSessionAccessor = liveShareSessionAccessor;
            _workspace = workspace;
        }
        public GuestProjectPathProvider(
            JoinableTaskContext joinableTaskContext,
            ITextDocumentFactoryService textDocumentFactory,
            ProxyAccessor proxyAccessor,
            LiveShareSessionAccessor liveShareSessionAccessor)
        {
            if (joinableTaskContext == null)
            {
                throw new ArgumentNullException(nameof(joinableTaskContext));
            }

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

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

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

            _joinableTaskFactory      = joinableTaskContext.Factory;
            _textDocumentFactory      = textDocumentFactory;
            _proxyAccessor            = proxyAccessor;
            _liveShareSessionAccessor = liveShareSessionAccessor;
        }
        public ProjectSnapshotSynchronizationService(
            JoinableTaskFactory joinableTaskFactory,
            LiveShareSessionAccessor liveShareSessionAccessor,
            IProjectSnapshotManagerProxy hostProjectManagerProxy,
            ProjectSnapshotManagerBase projectSnapshotManager)
        {
            if (joinableTaskFactory == null)
            {
                throw new ArgumentNullException(nameof(joinableTaskFactory));
            }

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

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

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

            _joinableTaskFactory      = joinableTaskFactory;
            _liveShareSessionAccessor = liveShareSessionAccessor;
            _hostProjectManagerProxy  = hostProjectManagerProxy;
            _projectSnapshotManager   = projectSnapshotManager;
        }
 public TestGuestProjectPathProvider(
     Uri hostProjectPath,
     JoinableTaskContext joinableTaskContext,
     ITextDocumentFactoryService textDocumentFactory,
     ProxyAccessor proxyAccessor,
     LiveShareSessionAccessor liveShareSessionAccessor)
     : base(joinableTaskContext, textDocumentFactory, proxyAccessor, liveShareSessionAccessor)
 {
     _hostProjectPath = hostProjectPath;
 }
Esempio n. 5
0
        public DefaultProxyAccessor(
            LiveShareSessionAccessor liveShareSessionAccessor,
            JoinableTaskContext joinableTaskContext)
        {
            if (liveShareSessionAccessor == null)
            {
                throw new ArgumentNullException(nameof(liveShareSessionAccessor));
            }

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

            _liveShareSessionAccessor = liveShareSessionAccessor;
            _joinableTaskFactory      = joinableTaskContext.Factory;
        }