C# Class TerrificNet.ViewEngine.IO.FileSystem

Inheritance: IFileSystem
显示文件 Open project: namics/TerrificNet Class Usage Examples

Public Methods

Method Description
CreateDirectory ( PathInfo directory ) : void
DirectoryExists ( PathInfo directory ) : bool
DirectoryGetFiles ( PathInfo directory, string fileExtension ) : IEnumerable
FileExists ( PathInfo filePath ) : bool
FileSystem ( ) : System
FileSystem ( string basePath ) : System
GetFileInfo ( PathInfo filePath ) : IFileInfo
OpenRead ( PathInfo filePath ) : Stream
OpenReadOrCreate ( PathInfo filePath ) : Stream
OpenWrite ( PathInfo filePath ) : Stream
RemoveFile ( PathInfo filePath ) : void
SubscribeAsync ( string pattern, Action handler ) : Task
SubscribeDirectoryGetFilesAsync ( PathInfo prefix, string extension, Action handler ) : Task

Private Methods

Method Description
GetRootPath ( PathInfo part ) : PathInfo
HandleFileSystemEvent ( FileSystemEventArgs a ) : void
Initialize ( ) : void
InitializeWatcher ( ) : void
NotifySubscriptions ( IFileInfo file ) : void
Unsubscribe ( LookupDirectoryFileSystemSubscription subscription ) : void
Unsubscribe ( LookupFileSystemSubscription subscription ) : void

Method Details

CreateDirectory() public method

public CreateDirectory ( PathInfo directory ) : void
directory PathInfo
return void

DirectoryExists() public method

public DirectoryExists ( PathInfo directory ) : bool
directory PathInfo
return bool

DirectoryGetFiles() public method

public DirectoryGetFiles ( PathInfo directory, string fileExtension ) : IEnumerable
directory PathInfo
fileExtension string
return IEnumerable

FileExists() public method

public FileExists ( PathInfo filePath ) : bool
filePath PathInfo
return bool

FileSystem() public method

public FileSystem ( ) : System
return System

FileSystem() public method

public FileSystem ( string basePath ) : System
basePath string
return System

GetFileInfo() public method

public GetFileInfo ( PathInfo filePath ) : IFileInfo
filePath PathInfo
return IFileInfo

OpenRead() public method

public OpenRead ( PathInfo filePath ) : Stream
filePath PathInfo
return Stream

OpenReadOrCreate() public method

public OpenReadOrCreate ( PathInfo filePath ) : Stream
filePath PathInfo
return Stream

OpenWrite() public method

public OpenWrite ( PathInfo filePath ) : Stream
filePath PathInfo
return Stream

RemoveFile() public method

public RemoveFile ( PathInfo filePath ) : void
filePath PathInfo
return void

SubscribeAsync() public method

public SubscribeAsync ( string pattern, Action handler ) : Task
pattern string
handler Action
return Task

SubscribeDirectoryGetFilesAsync() public method

public SubscribeDirectoryGetFilesAsync ( PathInfo prefix, string extension, Action handler ) : Task
prefix PathInfo
extension string
handler Action
return Task