Esempio n. 1
0
        public DefaultGeneratedCodeContainerStore(
            ForegroundDispatcher foregroundDispatcher,
            DocumentVersionCache documentVersionCache,
            CSharpPublisher csharpPublisher)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

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

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

            _foregroundDispatcher = foregroundDispatcher;
            _documentVersionCache = documentVersionCache;
            _csharpPublisher      = csharpPublisher;
            _store = new ConcurrentDictionary <string, GeneratedCodeContainer>(FilePathComparer.Instance);
        }
Esempio n. 2
0
        public UnsynchronizableContentDocumentProcessedListener(
            ForegroundDispatcher foregroundDispatcher,
            DocumentVersionCache documentVersionCache,
            CSharpPublisher csharpPublisher)
        {
            if (foregroundDispatcher == null)
            {
                throw new ArgumentNullException(nameof(foregroundDispatcher));
            }

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

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

            _foregroundDispatcher = foregroundDispatcher;
            _documentVersionCache = documentVersionCache;
            _csharpPublisher      = csharpPublisher;
        }