public DefaultRazorDynamicFileInfoProvider(RazorDocumentServiceProviderFactory factory)
        {
            if (factory is null)
            {
                throw new ArgumentNullException(nameof(factory));
            }

            _factory          = factory;
            _entries          = new ConcurrentDictionary <Key, Entry>();
            _createEmptyEntry = (key) => new Entry(CreateEmptyInfo(key), supportsSuppression: true);
        }
Example #2
0
        public DefaultRazorDynamicFileInfoProvider(RazorDocumentServiceProviderFactory factory, LSPEditorFeatureDetector lspEditorFeatureDetector)
        {
            if (factory is null)
            {
                throw new ArgumentNullException(nameof(factory));
            }

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

            _factory = factory;
            _lspEditorFeatureDetector = lspEditorFeatureDetector;
            _entries          = new ConcurrentDictionary <Key, Entry>();
            _createEmptyEntry = (key) => new Entry(CreateEmptyInfo(key));
        }