Esempio n. 1
0
        public DefaultTagHelperCompletionService(
            RazorTagHelperCompletionService razorCompletionService,
            HtmlFactsService htmlFactsService,
            TagHelperFactsService tagHelperFactsService,
            ILanguageServer languageServer)
        {
            if (razorCompletionService is null)
            {
                throw new ArgumentNullException(nameof(razorCompletionService));
            }

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

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

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

            _razorTagHelperCompletionService = razorCompletionService;
            _htmlFactsService      = htmlFactsService;
            _tagHelperFactsService = tagHelperFactsService;
            LanguageServer         = languageServer;
        }
Esempio n. 2
0
        public DefaultTagHelperCompletionService(RazorTagHelperCompletionService razorCompletionService)
        {
            if (razorCompletionService == null)
            {
                throw new ArgumentNullException(nameof(razorCompletionService));
            }

            _razorTagHelperCompletionService = razorCompletionService;
        }