Ejemplo n.º 1
0
        public RazorLanguageServerClient(
            RazorLanguageServerCustomMessageTarget customTarget,
            RazorLanguageClientMiddleLayer middleLayer,
            LSPRequestInvoker requestInvoker,
            ProjectConfigurationFilePathStore projectConfigurationFilePathStore)
        {
            if (customTarget is null)
            {
                throw new ArgumentNullException(nameof(customTarget));
            }

            if (middleLayer is null)
            {
                throw new ArgumentNullException(nameof(middleLayer));
            }

            if (requestInvoker is null)
            {
                throw new ArgumentNullException(nameof(requestInvoker));
            }

            if (projectConfigurationFilePathStore is null)
            {
                throw new ArgumentNullException(nameof(projectConfigurationFilePathStore));
            }

            _customMessageTarget = customTarget;
            _middleLayer         = middleLayer;
            _requestInvoker      = requestInvoker;
            _projectConfigurationFilePathStore = projectConfigurationFilePathStore;
            _shutdownLock = new object();
        }
        public RazorLanguageServerClient(
            RazorLanguageServerCustomMessageTarget customTarget,
            RazorLanguageClientMiddleLayer middleLayer,
            LSPRequestInvoker requestInvoker,
            ProjectConfigurationFilePathStore projectConfigurationFilePathStore,
            RazorLanguageServerLogHubLoggerProviderFactory logHubLoggerProviderFactory,
            VSLanguageServerFeatureOptions vsLanguageServerFeatureOptions,
            VSHostServicesProvider vsHostWorkspaceServicesProvider)
        {
            if (customTarget is null)
            {
                throw new ArgumentNullException(nameof(customTarget));
            }

            if (middleLayer is null)
            {
                throw new ArgumentNullException(nameof(middleLayer));
            }

            if (requestInvoker is null)
            {
                throw new ArgumentNullException(nameof(requestInvoker));
            }

            if (projectConfigurationFilePathStore is null)
            {
                throw new ArgumentNullException(nameof(projectConfigurationFilePathStore));
            }

            if (logHubLoggerProviderFactory is null)
            {
                throw new ArgumentNullException(nameof(logHubLoggerProviderFactory));
            }

            if (vsLanguageServerFeatureOptions is null)
            {
                throw new ArgumentNullException(nameof(vsLanguageServerFeatureOptions));
            }

            if (vsHostWorkspaceServicesProvider is null)
            {
                throw new ArgumentNullException(nameof(vsHostWorkspaceServicesProvider));
            }

            _customMessageTarget = customTarget;
            _middleLayer         = middleLayer;
            _requestInvoker      = requestInvoker;
            _projectConfigurationFilePathStore = projectConfigurationFilePathStore;
            _logHubLoggerProviderFactory       = logHubLoggerProviderFactory;
            _vsLanguageServerFeatureOptions    = vsLanguageServerFeatureOptions;
            _vsHostWorkspaceServicesProvider   = vsHostWorkspaceServicesProvider;
            _shutdownLock = new object();
        }
Ejemplo n.º 3
0
        public RazorLanguageServerClient(RazorLanguageServerCustomMessageTarget customTarget, RazorLanguageClientMiddleLayer middleLayer)
        {
            if (customTarget is null)
            {
                throw new ArgumentNullException(nameof(customTarget));
            }

            if (middleLayer is null)
            {
                throw new ArgumentNullException(nameof(middleLayer));
            }

            _customMessageTarget = customTarget;
            _middleLayer         = middleLayer;
        }