public DefaultCompletionProviderDependencies(
            RazorCompletionFactsService completionFactsService,
            IAsyncCompletionBroker asyncCompletionBroker)
        {
            if (completionFactsService == null)
            {
                throw new ArgumentNullException(nameof(completionFactsService));
            }

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

            CompletionFactsService = completionFactsService;
            AsyncCompletionBroker  = asyncCompletionBroker;
        }
Example #2
0
        public RazorDirectiveCompletionSourceProvider(
            ForegroundDispatcher foregroundDispatcher,
            RazorCompletionFactsService completionFactsService)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

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

            _foregroundDispatcher   = foregroundDispatcher;
            _completionFactsService = completionFactsService;
        }
        public RazorDirectiveCompletionSource(
            ForegroundDispatcher foregroundDispatcher,
            VisualStudioRazorParser parser,
            RazorCompletionFactsService completionFactsService)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

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

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

            _foregroundDispatcher = foregroundDispatcher;
            _parser = parser;
            _completionFactsService = completionFactsService;
        }