Interface IFileService
- Namespace
- AsmResolver.IO
- Assembly
- AsmResolver.dll
Provides members for opening and managing files for reading.
public interface IFileService : IDisposable
- Inherited Members
Remarks
The file service is the owner of any of the IInputFile objects it produces. Disposing an instance of this interface results in all files opened by this service to be closed and disposed as well.
Methods
GetOpenedFiles()
Gets a collection of files currently opened by this file service.
IEnumerable<string> GetOpenedFiles()
Returns
- IEnumerable<string>
The paths of the files that were opened.
InvalidateFile(string)
If the provided file path was opened by this file service, closes the provided file and removes it from the cache.
void InvalidateFile(string filePath)
Parameters
filePath
stringThe path of the file to close.
OpenFile(string)
Opens a file at the provided file path.
IInputFile OpenFile(string filePath)
Parameters
filePath
stringThe path to the file to open.
Returns
- IInputFile
The opened file.