public VisualStudioFileCache(ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IFileWrapper fileWrapper, IVisualStudioOpenDocumentManager openDocumentManager) { _fileWrapper = fileWrapper; _openDocumentManager = openDocumentManager; WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy); }
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 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; } }); }