public VisualStudioFileCache(ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IFileWrapper fileWrapper, IVisualStudioOpenDocumentManager openDocumentManager)
        {
            _fileWrapper         = fileWrapper;
            _openDocumentManager = openDocumentManager;

            WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy);
        }
        public VisualStudioFileCache(ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IFileWrapper fileWrapper, IVisualStudioOpenDocumentManager openDocumentManager)
        {
            _fileWrapper = fileWrapper;
            _openDocumentManager = openDocumentManager;

            WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy);
        }
示例#3
0
        public CSharpFileFactory(IFileReader fileReader, ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioOpenDocumentManager openDocumentManager)
        {
            _fileReader          = fileReader;
            _openDocumentManager = openDocumentManager;

            WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy);
        }
示例#4
0
        public CSharpFileFactory(IFileReader fileReader, ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioOpenDocumentManager openDocumentManager)
        {
            _fileReader = fileReader;
            _openDocumentManager = openDocumentManager;

            WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy);
        }
 public pMixinsCodeGeneratorResponseFileWriter(IFileWrapper fileWrapper, IFileReader fileReader, ICodeBehindFileHelper codeBehindFileHelper, IVisualStudioOpenDocumentManager visualStudioOpenDocumentManager)
 {
     _fileWrapper = fileWrapper;
     _fileReader = fileReader;
     _codeBehindFileHelper = codeBehindFileHelper;
     _visualStudioOpenDocumentManager = visualStudioOpenDocumentManager;
 }
 public pMixinsCodeGeneratorResponseFileWriter(IFileWrapper fileWrapper, IFileReader fileReader, ICodeBehindFileHelper codeBehindFileHelper, IVisualStudioOpenDocumentManager visualStudioOpenDocumentManager)
 {
     _fileWrapper                     = fileWrapper;
     _fileReader                      = fileReader;
     _codeBehindFileHelper            = codeBehindFileHelper;
     _visualStudioOpenDocumentManager = visualStudioOpenDocumentManager;
 }
示例#7
0
        public FileReaderAsync(IVisualStudioOpenDocumentManager openDocumentManager, IFileWrapper fileWrapper, FilePath filename)
        {
            _fileName            = filename;
            _openDocumentManager = openDocumentManager;

            _readFileTask = new TaskFactory().StartNew(() =>
            {
                try
                {
                    _log.DebugFormat("Reading File [{0}]", filename);

                    _fileContents = fileWrapper.ReadAllText(filename);
                }
                catch (Exception e)
                {
                    _fileReadException = e;
                }
            });
        }
示例#8
0
        public FileReaderAsync(IVisualStudioOpenDocumentManager openDocumentManager, IFileWrapper fileWrapper, FilePath filename)
        {
            _fileName = filename;
            _openDocumentManager = openDocumentManager;

            _readFileTask = new TaskFactory().StartNew(() =>
            {
                try
                {
                    _log.DebugFormat("Reading File [{0}]", filename);

                    _fileContents = fileWrapper.ReadAllText(filename);
                }
                catch (Exception e)
                {
                    _fileReadException = e;
                }
            });
        }